Changed \Z to \z to fit with Go's naming
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user