mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-12-18 02:41:09 +00:00
Use correct variable in ustring.lua
Change-Id: Ic576b8c31c487c106593050538f9f2cc5b722b62
This commit is contained in:
parent
3a7bf89d17
commit
29266a9a0f
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue