Remove unsupported modifier
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
6bf8fca574
commit
dc7beda308
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue