aboutsummaryrefslogtreecommitdiffstats
path: root/test/lua/unit/regxep.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-12 12:46:10 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-12 12:46:10 +0100
commit3a201043a8eca6be7e7d9a8a06bf4ec18c4047ef (patch)
treeea64785468cbe42232a522245b22bd21fd39f720 /test/lua/unit/regxep.lua
parent5912f1002bfb167232ce7ab2b23973644616ed1c (diff)
downloadrspamd-3a201043a8eca6be7e7d9a8a06bf4ec18c4047ef.tar.gz
rspamd-3a201043a8eca6be7e7d9a8a06bf4ec18c4047ef.zip
Use raw regexp instead of utf ones by default.
Now to enable utf8 match, one should specify 'u' modifier, for example, by adding '/u' to the slashed patterm.
Diffstat (limited to 'test/lua/unit/regxep.lua')
-rw-r--r--test/lua/unit/regxep.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lua/unit/regxep.lua b/test/lua/unit/regxep.lua
index 04db54aa9..8cc2db2bd 100644
--- a/test/lua/unit/regxep.lua
+++ b/test/lua/unit/regxep.lua
@@ -15,7 +15,7 @@ context("Regexp unit tests", function()
{'m,test,', 'test123', false},
{'m{https?://[^/?\\s]+?:\\d+(?<!:80)(?<!:443)(?<!:8080)(?:/|\\s|$)}', '', false},
{'/test/i', 'TeSt123', true},
- {'/тест/i', 'ТесТ', true},
+ {'/ТесТ/iu', 'тест', true},
-- Raw regexp
{'/\\S<[-\\w\\.]+\\@[-\\w\\.]+>/r', 'some<example@example.com>', true},
-- Cyrillic utf8 letter