extractAll: Fixed bug [CONV-8285]

This commit is contained in:
Pavel Kartavyy 2013-09-10 16:52:40 +00:00
parent 8d8b96480b
commit 4ff415e336

View File

@ -289,7 +289,7 @@ public:
if (!pos || pos > end)
return false;
if (!re->match(pos, end - pos, matches))
if (!re->match(pos, end - pos, matches) || !matches[capture].length)
return false;
token_begin = pos + matches[capture].offset;