From 78669c22e5f273b143f45817acd2aa36a80f34b7 Mon Sep 17 00:00:00 2001 From: Robin Jadoul Date: Sat, 28 May 2016 14:19:18 +0200 Subject: [PATCH] Fix re parsing where a - as last character in a class yielded a syntax error --- src/re.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/re.cpp b/src/re.cpp index 581f85b..d1c8d28 100644 --- a/src/re.cpp +++ b/src/re.cpp @@ -237,6 +237,7 @@ namespace lxs { if (input[idx] == ']') { used_chars.insert('-'); + idx--; } else {