Add a string.gmatch call to strlib.lua test case and fix the bug it exposed.
This commit is contained in:
@@ -43,3 +43,7 @@ local function badpat()
|
||||
end
|
||||
|
||||
print( pcall( badpat ) )
|
||||
|
||||
for k, v in string.gmatch("w=200&h=150", "(%w+)=(%w+)") do
|
||||
print(k, v)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user