fix: further coderabbit suggestions

This commit is contained in:
Stavros
2025-08-26 14:49:55 +03:00
parent a5e1ae096b
commit a1b6ecdd5d
9 changed files with 33 additions and 18 deletions

View File

@@ -101,7 +101,7 @@ func CheckFilter(filter string, str string) bool {
return false
}
if re.MatchString(str) {
if re.MatchString(strings.TrimSpace(str)) {
return true
}
}
@@ -109,7 +109,7 @@ func CheckFilter(filter string, str string) bool {
filterSplit := strings.Split(filter, ",")
for _, item := range filterSplit {
if strings.TrimSpace(item) == str {
if strings.TrimSpace(item) == strings.TrimSpace(str) {
return true
}
}