diff options
Diffstat (limited to 'Lua/test.lua')
| -rw-r--r-- | Lua/test.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lua/test.lua b/Lua/test.lua index 3e13f55..792a534 100644 --- a/Lua/test.lua +++ b/Lua/test.lua @@ -13,7 +13,7 @@ local function repr(obj) end print("Matching:") -for m in bp.eachmatch("(*`a-z) => '(@0)'", "one two three") do +for m in bp.matches("(*`a-z) => '(@0)'", "one two three") do print(repr(m)) end @@ -45,6 +45,6 @@ print(pat:match("...foo...")) print(pat:match("...baz...")) print(pat:replace("{@0}", "...baz...")) -for m in pat:eachmatch("hello world") do +for m in pat:matches("hello world") do print(m) end |
