summaryrefslogtreecommitdiff
path: root/parser.go
diff options
context:
space:
mode:
Diffstat (limited to 'parser.go')
-rw-r--r--parser.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/parser.go b/parser.go
index a612857..7530b3d 100644
--- a/parser.go
+++ b/parser.go
@@ -181,6 +181,8 @@ func parseMatcher(matcher string) (alphabet string, ranges [][]rune) {
}
} else if i+1 < len(runes) && runes[i] == '\\' {
alphabet += string(runes[i+1])
+ } else if runes[i] == '-' {
+ continue
} else {
alphabet += string(runes[i])
}