aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Comments
diff options
context:
space:
mode:
authorMario Danic <mario@lovelyhq.com>2018-06-08 00:59:31 +0200
committerMario Danic <mario@lovelyhq.com>2018-06-08 00:59:31 +0200
commitdc7beda308716183f2bcc67d63f7786a90eaa63c (patch)
treef23764610f30bd2dad3c473971d43e15799685d1 /lib/private/Comments
parent6bf8fca574897890013ba14e5ac00bc6b9a6c9e3 (diff)
downloadnextcloud-server-dc7beda308716183f2bcc67d63f7786a90eaa63c.tar.gz
nextcloud-server-dc7beda308716183f2bcc67d63f7786a90eaa63c.zip
Remove unsupported modifier
Signed-off-by: Mario Danic <mario@lovelyhq.com>
Diffstat (limited to 'lib/private/Comments')
-rw-r--r--lib/private/Comments/Comment.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Comments/Comment.php b/lib/private/Comments/Comment.php
index 9335b911b8f..630844c444a 100644
--- a/lib/private/Comments/Comment.php
+++ b/lib/private/Comments/Comment.php
@@ -225,7 +225,7 @@ class Comment implements IComment {
*
*/
public function getMentions() {
- $ok = preg_match_all('/\B(^@\w+|(?<=\s)@\w+)/gi', $this->getMessage(), $mentions);
+ $ok = preg_match_all('/\B(^@\w+|(?<=\s)@\w+)/i', $this->getMessage(), $mentions);
if(!$ok || !isset($mentions[0]) || !is_array($mentions[0])) {
return [];
}