diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/lua/emails.lua | 2 | ||||
-rw-r--r-- | src/plugins/lua/ratelimit.lua | 2 | ||||
-rw-r--r-- | src/plugins/lua/trie.lua | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/lua/emails.lua b/src/plugins/lua/emails.lua index 80855453d..d99b0966b 100644 --- a/src/plugins/lua/emails.lua +++ b/src/plugins/lua/emails.lua @@ -17,7 +17,7 @@ function split(str, delim, maxNb) local pat = "(.-)" .. delim .. "()" local nb = 0 local lastPos - for part, pos in string.gfind(str, pat) do + for part, pos in string.gmatch(str, pat) do nb = nb + 1 result[nb] = part lastPos = pos diff --git a/src/plugins/lua/ratelimit.lua b/src/plugins/lua/ratelimit.lua index 787f9fc94..2bc2cac42 100644 --- a/src/plugins/lua/ratelimit.lua +++ b/src/plugins/lua/ratelimit.lua @@ -233,7 +233,7 @@ local function split(str, delim, maxNb) local pat = "(.-)" .. delim .. "()" local nb = 0 local lastPos - for part, pos in string.gfind(str, pat) do + for part, pos in string.gmatch(str, pat) do nb = nb + 1 result[nb] = part lastPos = pos diff --git a/src/plugins/lua/trie.lua b/src/plugins/lua/trie.lua index 65524745c..bda978cb7 100644 --- a/src/plugins/lua/trie.lua +++ b/src/plugins/lua/trie.lua @@ -14,7 +14,7 @@ local function split(str, delim, maxNb) local pat = "(.-)" .. delim .. "()" local nb = 0 local lastPos - for part, pos in string.gfind(str, pat) do + for part, pos in string.gmatch(str, pat) do nb = nb + 1 result[nb] = part lastPos = pos |