Fix for inverted character class ranges

This commit is contained in:
Robin Jadoul 2016-05-30 17:14:07 +02:00
parent 652ee18461
commit 063d73835a
1 changed files with 4 additions and 2 deletions

View File

@ -187,8 +187,10 @@ namespace lxs {
}
else
{
used_chars.insert(input[idx]);
last_char = input[idx];
if (idx < end - 1 && input[idx + 1] != '-')
used_chars.insert(input[idx]);
else
last_char = input[idx];
}
}