Small bugfix in regex parser
This commit is contained in:
parent
cdf0bfb16c
commit
a1dfaf91d5
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue