Remove unsupported modifier

Signed-off-by: Mario Danic <mario@lovelyhq.com>
pull/9793/head
Mario Danic 8 years ago
parent 6bf8fca574
commit dc7beda308
  1. 2
      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 [];
}

Loading…
Cancel
Save