summaryrefslogtreecommitdiffstats
path: root/tests/lib/Comments
diff options
context:
space:
mode:
authorMario Danic <mario@lovelyhq.com>2018-06-08 17:15:41 +0200
committerMario Danic <mario@lovelyhq.com>2018-06-08 17:15:41 +0200
commit5acdd45b771171c888c1411d5b53c2f1dc6cefdf (patch)
tree38b86026331d31266f392cf2a017dbba38e70b9a /tests/lib/Comments
parent47769d2640be7f49d9db154a161e6c9d84928ee3 (diff)
downloadnextcloud-server-5acdd45b771171c888c1411d5b53c2f1dc6cefdf.tar.gz
nextcloud-server-5acdd45b771171c888c1411d5b53c2f1dc6cefdf.zip
Add a new regex test
Signed-off-by: Mario Danic <mario@lovelyhq.com>
Diffstat (limited to 'tests/lib/Comments')
-rw-r--r--tests/lib/Comments/CommentTest.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/lib/Comments/CommentTest.php b/tests/lib/Comments/CommentTest.php
index 6f67356ccae..fd76f443dfd 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']
]