Use 'CONCAT' instead of literally specifiying the rune

master
Aadhavan Srinivasan 6 days ago
parent 68a3581d93
commit 43d0cbf0a0

@ -17,7 +17,7 @@ var NONCAPLPAREN_CHAR rune = 0xF0006 // Represents a non-capturing group's LPARE
var ESC_BACKSLASH rune = 0xF0007 // Represents an escaped backslash var ESC_BACKSLASH rune = 0xF0007 // Represents an escaped backslash
var CHAR_RANGE rune = 0xF0008 // Represents a character range var CHAR_RANGE rune = 0xF0008 // Represents a character range
var specialChars = []rune{'?', '*', '\\', '^', '$', '{', '}', '(', ')', '[', ']', '+', '|', '.', '~', '<', '>', LBRACKET, RBRACKET, NONCAPLPAREN_CHAR} var specialChars = []rune{'?', '*', '\\', '^', '$', '{', '}', '(', ')', '[', ']', '+', '|', '.', CONCAT, '<', '>', LBRACKET, RBRACKET, NONCAPLPAREN_CHAR}
// An interface for int and rune, which are identical // An interface for int and rune, which are identical
type character interface { type character interface {

Loading…
Cancel
Save