From 8359c047aaebe274a2d811d61922b571ca7d10df Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Tue, 10 Dec 2024 12:29:03 -0300 Subject: Namespace packages with "urubu/" --- spec/grammar/util.go | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 spec/grammar/util.go (limited to 'spec/grammar/util.go') diff --git a/spec/grammar/util.go b/spec/grammar/util.go deleted file mode 100644 index bf3f233..0000000 --- a/spec/grammar/util.go +++ /dev/null @@ -1,21 +0,0 @@ -package grammar - -import "strings" - -var rep = strings.NewReplacer( - `.`, `\.`, - `*`, `\*`, - `+`, `\+`, - `?`, `\?`, - `|`, `\|`, - `(`, `\(`, - `)`, `\)`, - `[`, `\[`, - `\`, `\\`, -) - -// EscapePattern escapes the special characters. -// For example, EscapePattern(`+`) returns `\+`. -func EscapePattern(s string) string { - return rep.Replace(s) -} -- cgit v1.2.3