We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 85a780b + 1352651 commit d64da97Copy full SHA for d64da97
1 file changed
src/sanitizers.go
@@ -25,7 +25,7 @@ import (
25
26
var (
27
domainRegex = regexp.MustCompile(`(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,6}`)
28
- pathRegex = regexp.MustCompile(`[^a-z\d&=+.\-_~/?#'%]+`)
+ pathRegex = regexp.MustCompile(`[^A-Za-z\d&=+.\-_~/?#'%]+`)
29
bmStrict = bluemonday.StrictPolicy()
30
whiteSpaceRegex = regexp.MustCompile(`(\r?\n)|( {2,})|(\t)`)
31
usernameSanitizingRegex = regexp.MustCompile(`[^a-zA-Z0-9_]+`)
0 commit comments