summaryrefslogtreecommitdiffstats
path: root/test/lua/unit/regxep.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/lua/unit/regxep.lua')
-rw-r--r--test/lua/unit/regxep.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/lua/unit/regxep.lua b/test/lua/unit/regxep.lua
index 1277cce11..e33d20d43 100644
--- a/test/lua/unit/regxep.lua
+++ b/test/lua/unit/regxep.lua
@@ -15,6 +15,10 @@ context("Regexp unit tests", function()
{'m,test,', 'test123', false},
{'/test/i', 'TeSt123', true},
{'/тест/i', 'ТесТ', true},
+ -- Raw regexp
+ {'/\\S<[-\\w\\.]+\\@[-\\w\\.]+>/r', 'some<example@example.com>', true},
+ -- Cyrillic utf8 letter
+ {'/\\S<[-\\w\\.]+\\@[-\\w\\.]+>/r', 'some<example@exаmple.com>', false},
}
for _,c in ipairs(cases) do