fixed pattern regex, fixed pattern AND operation

This commit is contained in:
2025-01-22 10:48:06 +01:00
committed by T.v.Dein
parent 1593799c03
commit 6566dd66f0
3 changed files with 11 additions and 7 deletions

View File

@@ -340,7 +340,7 @@ func (conf *Config) ApplyDefaults() {
func (conf *Config) PreparePattern(patterns []*Pattern) error {
// regex checks if a pattern looks like /$pattern/[i!]
flagre := regexp.MustCompile(`^/(.*)/([i!]+)$`)
flagre := regexp.MustCompile(`^/(.*)/([i!]*)$`)
for _, pattern := range patterns {
matches := flagre.FindAllStringSubmatch(pattern.Pattern, -1)