Remove unsupported modifier

Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2018-06-08 00:59:31 +02:00
parent 6bf8fca574
commit dc7beda308

View file

@ -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 [];
}