From 3fe77cbf3eae108a3963f16bf69cb8e06ddc4cbd Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 25 Sep 2021 19:05:15 -0700 Subject: :eachmatch() -> :matches() --- Lua/test.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Lua/test.lua') 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 -- cgit v1.2.3