1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2024-10-20 12:53:06 +02:00
This commit is contained in:
binwiederhier 2023-06-12 21:03:49 -04:00
parent a8def0aed2
commit 2d0c043dfd

View file

@ -34,7 +34,6 @@ func init() {
webPushAllowedEndpointsPatterns[i] = strings.ReplaceAll(strings.ReplaceAll(pattern, ".", "\\."), "*", ".+") webPushAllowedEndpointsPatterns[i] = strings.ReplaceAll(strings.ReplaceAll(pattern, ".", "\\."), "*", ".+")
} }
allPatterns := fmt.Sprintf("^(%s)", strings.Join(webPushAllowedEndpointsPatterns, "|")) allPatterns := fmt.Sprintf("^(%s)", strings.Join(webPushAllowedEndpointsPatterns, "|"))
fmt.Println(allPatterns)
webPushAllowedEndpointsRegex = regexp.MustCompile(allPatterns) webPushAllowedEndpointsRegex = regexp.MustCompile(allPatterns)
} }