aboutsummaryrefslogtreecommitdiffstats
path: root/test/lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-05-12 14:42:50 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-05-12 14:42:50 +0100
commit9dc7bf904bf62b332cfd5a0a99a195cef19149d7 (patch)
tree48a17e364fc16d6be5e9501f5639eea99b2774e9 /test/lua
parent7373423937593c5781bef430e4a17856ea3f75bc (diff)
downloadrspamd-9dc7bf904bf62b332cfd5a0a99a195cef19149d7.tar.gz
rspamd-9dc7bf904bf62b332cfd5a0a99a195cef19149d7.zip
[Fix] Try to fix false positive URL detections in text parts
Diffstat (limited to 'test/lua')
-rw-r--r--test/lua/unit/url.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lua/unit/url.lua b/test/lua/unit/url.lua
index 06082afe0..de274425d 100644
--- a/test/lua/unit/url.lua
+++ b/test/lua/unit/url.lua
@@ -17,8 +17,8 @@ context("URL check functions", function()
test("Extract urls from text", function()
local pool = mpool.create()
local cases = {
- {"test.com text", {"test.com", nil}},
- {" test.com text", {"test.com", nil}},
+ {"test.com", {"test.com", nil}},
+ {" test.com", {"test.com", nil}},
{"<test.com> text", {"test.com", nil}},
{"test.com. text", {"test.com", nil}},
{"mailto:A.User@example.com text", {"example.com", "A.User"}},