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

This commit is contained in:
2024-11-27 11:45:27 -05:00
parent 393769f152
commit eb6a044ecf

View File

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