Changed \Z to \z to fit with Go's naming

This commit is contained in:
2025-01-30 15:08:18 -05:00
parent ee51e39d59
commit 7431b1a7b2
3 changed files with 4 additions and 4 deletions

View File

@@ -98,7 +98,7 @@ func newEscapedNode(c rune, inCharClass bool) (postfixNode, error) {
if c == 'B' && inCharClass { // Invalid
return postfixNode{}, fmt.Errorf("word boundaries are not allowed in character class")
}
case 'A', 'Z': // A is start of input, Z is end of input (regardless of RE_MULTILINE)
case 'A', 'z': // A is start of input, z is end of input (regardless of RE_MULTILINE)
if inCharClass {
return postfixNode{}, fmt.Errorf("input boundaries are not allowed in character class")
} else {