Include new lines in implicit mention regular expression
This commit is contained in:
parent
e9045dbe09
commit
63f083f6fb
1 changed files with 1 additions and 1 deletions
|
@ -692,7 +692,7 @@ class Processor
|
||||||
$kept_mentions = [];
|
$kept_mentions = [];
|
||||||
|
|
||||||
// Extract one prepended mention at a time from the body
|
// Extract one prepended mention at a time from the body
|
||||||
while(preg_match('#^(@\[url=([^\]]+)].*?\[\/url]\s)(.*)#mi', $body, $matches)) {
|
while(preg_match('#^(@\[url=([^\]]+)].*?\[\/url]\s)(.*)#mis', $body, $matches)) {
|
||||||
if (!in_array($matches[2], $implicit_mentions) ) {
|
if (!in_array($matches[2], $implicit_mentions) ) {
|
||||||
$kept_mentions[] = $matches[1];
|
$kept_mentions[] = $matches[1];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue