]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Add one more case
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 18 Jun 2021 15:22:04 +0000 (16:22 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 18 Jun 2021 19:35:24 +0000 (20:35 +0100)
test/functional/messages/zerofont.eml
test/rspamd_cxx_unit_utils.hxx

index c5242d95d83f605852128bdf8bbc300522baa9d3..06af493fac37b1d182fdbabd614a86efb6ad36d4 100644 (file)
@@ -14,5 +14,7 @@ Content-Type: text/html
   <body class="activity-stream">
     <div>fi<span style="FONT-SIZE: 0px">le </span>sh<span style="FONT-SIZE: 0px">aring </span></div>
   <a href="https://example.com">test url</a>
+
+<div>foo<div>bar</div>ttt<div>ololo</div>baz</div>
   </body>
 </html>
index f9aa86a951b71c64336cdc991965369c59431546..a65adab7016156507bd8fb12047091a909a67c5b 100644 (file)
@@ -36,6 +36,7 @@ TEST_CASE("rspamd_strip_smtp_comments_inplace") {
                        {"abc(foo(bar))", "abc"},
                        {"(bar)abc(foo)", "abc"},
                        {"ab(ololo)c(foo)", "abc"},
+                       {"ab(olo\\)lo)c(foo)", "abc"},
                        {"ab(trol\\\1lo)c(foo)", "abc"},
                        {"\\ab(trol\\\1lo)c(foo)", "abc"},
        };