From dc7beda308716183f2bcc67d63f7786a90eaa63c Mon Sep 17 00:00:00 2001 From: Mario Danic Date: Fri, 8 Jun 2018 00:59:31 +0200 Subject: Remove unsupported modifier Signed-off-by: Mario Danic --- lib/private/Comments/Comment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/private/Comments') 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 []; } -- cgit v1.2.3