]> source.dussan.org Git - rspamd.git/commitdiff
[Test] Added test for case "hello.\nagain" 2493/head
authorMikhail Galanin <mgalanin@mimecast.com>
Tue, 18 Sep 2018 10:12:28 +0000 (11:12 +0100)
committerMikhail Galanin <mgalanin@mimecast.com>
Tue, 18 Sep 2018 10:12:28 +0000 (11:12 +0100)
test/functional/cases/260_regex.robot
test/functional/configs/regexp.conf

index 24bdca30179231b0792f521ddf51ca85e53f665f..6834ff01185d12b74db92aa35fac8d5ae6ed51cc 100644 (file)
@@ -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
index 0c0f935738d502ae194543a3d1b768bcb8706ffa..ddf780ed179bcfd35f67ae01baeee6f62c6f50aa 100644 (file)
@@ -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"