diff options
author | Mikhail Galanin <mgalanin@mimecast.com> | 2018-09-18 11:12:28 +0100 |
---|---|---|
committer | Mikhail Galanin <mgalanin@mimecast.com> | 2018-09-18 11:12:28 +0100 |
commit | 5ec5204446c3f6fc496a9b97ee15ae0c2dadeeba (patch) | |
tree | 69826f0d5c3df533a1b863080eadb35416a90b3c /test | |
parent | b1543ef5c40c43680445cd987c15a72ae8598d9a (diff) | |
download | rspamd-5ec5204446c3f6fc496a9b97ee15ae0c2dadeeba.tar.gz rspamd-5ec5204446c3f6fc496a9b97ee15ae0c2dadeeba.zip |
[Test] Added test for case "hello.\nagain"
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/cases/260_regex.robot | 1 | ||||
-rw-r--r-- | test/functional/configs/regexp.conf | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/test/functional/cases/260_regex.robot b/test/functional/cases/260_regex.robot index 24bdca301..6834ff011 100644 --- a/test/functional/cases/260_regex.robot +++ b/test/functional/cases/260_regex.robot @@ -22,6 +22,7 @@ Newlines Check Rspamc ${result} SA_BODY_WORD_WITH_SPACE_BOUNDARIES Check Rspamc ${result} SA_BODY_WORD_WITH_SPACE_BOUNDARIES_2 Check Rspamc ${result} SA_BODY_WORD_WITH_SPACE_BOUNDARIES_3 + Check Rspamc ${result} SA_BODY_WORD_WITH_SPACE_AND_DOT Check Rspamc ${result} https://google.com/maps/ Check Rspamc ${result} https://www.google.com/search?q\=hello world&oq\=hello world&aqs\=chrome..69i57j0l5.3045j0j7&sourceid\=chrome&ie\=UTF-8 Check Rspamc ${result} https://github.com/google/sanitizers/wiki/AddressSanitizer diff --git a/test/functional/configs/regexp.conf b/test/functional/configs/regexp.conf index 0c0f93573..ddf780ed1 100644 --- a/test/functional/configs/regexp.conf +++ b/test/functional/configs/regexp.conf @@ -41,6 +41,12 @@ regexp { description = 'Test if regex matches word separated with newline (should work - newline is replaced with space)', group = 'body', } + SA_BODY_WORD_WITH_SPACE_AND_DOT { + re = '/\\bword\\.\\sagain\\b/{sa_body}', + score = 0.0, + description = 'Test if regex matches word separated with newline (should work - newline is replaced with space)', + group = 'body', + } } lua = "${TESTDIR}/lua/regex_test.lua" |