From 43d0cbf0a09c3ab1e0b4f8082171433847a609d2 Mon Sep 17 00:00:00 2001 From: Aadhavan Srinivasan Date: Mon, 27 Jan 2025 13:54:02 -0500 Subject: [PATCH] Use 'CONCAT' instead of literally specifiying the rune --- misc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc.go b/misc.go index 0f27b89..19a2fc4 100644 --- a/misc.go +++ b/misc.go @@ -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 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 type character interface {