This commit is contained in:
pando85 2025-02-17 09:50:27 -08:00 committed by GitHub
commit 9383318c87
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -44,7 +44,7 @@ var (
alphaNumericChars = `\-\.\_\~a-zA-Z0-9\/:` alphaNumericChars = `\-\.\_\~a-zA-Z0-9\/:`
extendedAlphaNumeric = alphaNumericChars + ", " extendedAlphaNumeric = alphaNumericChars + ", "
regexEnabledChars = regexp.QuoteMeta(`^$[](){}*+?|&=\`) regexEnabledChars = regexp.QuoteMeta(`^$[](){}*+?|&=\`)
urlEnabledChars = regexp.QuoteMeta(`,:?&=`) urlEnabledChars = regexp.QuoteMeta(`@,:?&=`)
) )
// IsValidRegex checks if the tested string can be used as a regex, but without any weird character. // IsValidRegex checks if the tested string can be used as a regex, but without any weird character.