aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2013-11-08 16:42:04 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2013-11-08 16:42:04 +0000
commit08d1815a773b9543f79fc89b21191f0b1cf0e043 (patch)
tree0157e759644456ab029ed9bd10565adc967b1d4f /src
parenta0a7d49e7ebb2479c807d1de26a6dea27e5db064 (diff)
downloadrspamd-08d1815a773b9543f79fc89b21191f0b1cf0e043.tar.gz
rspamd-08d1815a773b9543f79fc89b21191f0b1cf0e043.zip
Replace gfind with gmatch.
Reported by: Andrew Lewis
Diffstat (limited to 'src')
-rw-r--r--src/plugins/lua/emails.lua2
-rw-r--r--src/plugins/lua/ratelimit.lua2
-rw-r--r--src/plugins/lua/trie.lua2
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