From 5acdd45b771171c888c1411d5b53c2f1dc6cefdf Mon Sep 17 00:00:00 2001 From: Mario Danic Date: Fri, 8 Jun 2018 17:15:41 +0200 Subject: [PATCH] Add a new regex test Signed-off-by: Mario Danic --- tests/lib/Comments/CommentTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/lib/Comments/CommentTest.php b/tests/lib/Comments/CommentTest.php index 6f67356cca..fd76f443df 100644 --- a/tests/lib/Comments/CommentTest.php +++ b/tests/lib/Comments/CommentTest.php @@ -144,7 +144,9 @@ class CommentTest extends TestCase { [ '@foobar and @barfoo you should know, @foo@bar.com is valid' . ' and so is @bar@foo.org@foobar.io I hope that clarifies everything.' . - ' cc @23452-4333-54353-2342 @yolo!', + ' cc @23452-4333-54353-2342 @yolo!' . + ' however the most important thing to know is that www.croissant.com/@oil is not valid' . + ' and won\'t match anything at all', ['foobar', 'barfoo', 'foo@bar.com', 'bar@foo.org@foobar.io', '23452-4333-54353-2342', 'yolo'] ]