Added angle brackets to list of special characters (which need to be escaped to be used literally

master
Aadhavan Srinivasan 4 weeks ago
parent 393769f152
commit eb6a044ecf

@ -23,7 +23,7 @@ func isWordBoundary(str []rune, idx int) bool {
} }
func isNormalChar(c rune) bool { func isNormalChar(c rune) bool {
specialChars := []rune(`?*\^${}()+|[].~`) specialChars := []rune(`?*\^${}()+|[].~<>`)
specialChars = append(specialChars, LBRACKET, RBRACKET) specialChars = append(specialChars, LBRACKET, RBRACKET)
return !slices.Contains(specialChars, c) return !slices.Contains(specialChars, c)
} }

Loading…
Cancel
Save