Added angle brackets to list of special characters (which need to be escaped to be used literally
This commit is contained in:
2
misc.go
2
misc.go
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user