Add a string.gmatch call to strlib.lua test case and fix the bug it exposed.

This commit is contained in:
Ian Farmer
2007-11-19 23:06:26 +00:00
parent 0d1aed5b5a
commit ad5e776dc9
3 changed files with 9 additions and 5 deletions

View File

@@ -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