Use correct variable in ustring.lua

Change-Id: Ic576b8c31c487c106593050538f9f2cc5b722b62
This commit is contained in:
Brad Jorsch 2016-01-02 10:38:19 -05:00
parent 3a7bf89d17
commit 29266a9a0f

View file

@ -730,7 +730,7 @@ local function find( s, cps, rawpat, pattern, init, noAnchor )
local ep = match( sp, pp ) local ep = match( sp, pp )
if ep then if ep then
for i = 1, ncapt do 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 end
return sp, ep - 1, unpack( captures ) return sp, ep - 1, unpack( captures )
end end