Small bugfix in regex parser

This commit is contained in:
Robin Jadoul 2016-05-30 16:50:22 +02:00
parent cdf0bfb16c
commit a1dfaf91d5
1 changed files with 1 additions and 1 deletions

View File

@ -380,7 +380,7 @@ namespace lxs {
{ {
size_t i = 0; size_t i = 0;
std::shared_ptr<RE> res = parseRE(input, i); std::shared_ptr<RE> res = parseRE(input, i);
if (i < input.length() - 1) if (i < input.length())
throw SyntaxError("Incorrect regex"); throw SyntaxError("Incorrect regex");
return res; return res;
} }