From eb6a044ecf660fd63c3bc78024bb0fb34634a437 Mon Sep 17 00:00:00 2001 From: Aadhavan Srinivasan Date: Wed, 27 Nov 2024 11:45:27 -0500 Subject: [PATCH] Added angle brackets to list of special characters (which need to be escaped to be used literally --- misc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc.go b/misc.go index ac14cc1..7ce3210 100644 --- a/misc.go +++ b/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) }