feat: allow upper case "umlaute" #109

Merged
tim merged 1 commits from 104-umlaute into prod 2025-05-18 16:42:01 +00:00
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 == "" {