feat: allow upper case "umlaute"
Some checks failed
Build and Push Docker Image / Build-And-Push-Docker-Image (push) Successful in 4m49s
Build Docker Image / Build-Docker-Image (push) Has been cancelled

This commit was merged in pull request #109.
This commit is contained in:
2025-05-18 18:36:54 +02:00
parent b3b840982c
commit 25e748c12b
2 changed files with 8 additions and 4 deletions

View File

@@ -2,7 +2,6 @@ package service
import (
"fmt"
"regexp"
"spend-sparrow/db"
"spend-sparrow/log"
@@ -15,8 +14,6 @@ import (
)
var (
safeInputRegex = regexp.MustCompile(`^[a-zA-Z0-9äöüß -]+$`)
accountMetric = promauto.NewCounterVec(
prometheus.CounterOpts{
Name: "spendsparrow_account_total",

View File

@@ -1,6 +1,13 @@
package service
import "fmt"
import (
"fmt"
"regexp"
)
var (
safeInputRegex = regexp.MustCompile(`^[a-zA-Z0-9ÄÖÜäöüß -]+$`)
)
func validateString(value string, fieldName string) error {
if value == "" {