Merge "Use correct variable in ustring.lua"

This commit is contained in:
jenkins-bot 2016-01-03 20:41:02 +00:00 committed by Gerrit Code Review
commit 2473efdb2a

View file

@ -730,7 +730,7 @@ local function find( s, cps, rawpat, pattern, init, noAnchor )
local ep = match( sp, pp )
if ep then
for i = 1, ncapt do
captures[i] = getcapt( i, 'Unclosed capture beginning at pattern character ' .. captparen[pp], 2 )
captures[i] = getcapt( i, 'Unclosed capture beginning at pattern character ' .. captparen[i], 2 )
end
return sp, ep - 1, unpack( captures )
end