Fix re parsing where a - as last character in a class yielded a syntax error

This commit is contained in:
Robin Jadoul 2016-05-28 14:19:18 +02:00
parent c6eeb93ed4
commit 78669c22e5
1 changed files with 1 additions and 0 deletions

View File

@ -237,6 +237,7 @@ namespace lxs {
if (input[idx] == ']') if (input[idx] == ']')
{ {
used_chars.insert('-'); used_chars.insert('-');
idx--;
} }
else else
{ {