summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-05-14 13:16:06 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-05-14 13:16:06 +0100
commitd43b852a028b6c77f1641361bff3d96f0d0ef4a8 (patch)
treed445fd1b4328689b08b8a098cf83fb8c4abc08b6 /test
parentf5095168e1f44c8f02c462a9f34bf34169646492 (diff)
downloadrspamd-d43b852a028b6c77f1641361bff3d96f0d0ef4a8.tar.gz
rspamd-d43b852a028b6c77f1641361bff3d96f0d0ef4a8.zip
[Fix] Fix regexp selector and add flattening
Diffstat (limited to 'test')
-rw-r--r--test/lua/unit/selectors.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/lua/unit/selectors.lua b/test/lua/unit/selectors.lua
index dea80fdbf..cca1d1e5a 100644
--- a/test/lua/unit/selectors.lua
+++ b/test/lua/unit/selectors.lua
@@ -350,6 +350,10 @@ context("Selectors test", function()
selector = "header('Subject'):gsub('a', 'b')",
expect = {"Second, lower-cbsed hebder subject"}
},
+ ["header regexp first"] = {
+ selector = "header('Subject').regexp('.*').first",
+ expect = {"Second, lower-cased header subject"}
+ },
}
for case_name, case in pairs(cases) do