diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-09-25 19:05:15 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-09-25 19:05:15 -0700 |
| commit | 3fe77cbf3eae108a3963f16bf69cb8e06ddc4cbd (patch) | |
| tree | 3a59be7062d2416d7337518aa38e0d73b5832be4 /Lua/test.lua | |
| parent | fb1840e07a6643a92206abb8a64a33b003ec06a8 (diff) | |
:eachmatch() -> :matches()
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 |
