1
1
Fork 0

Merge pull request #6649 from MrPetovan/bug/6647-include-newlines-in-implicit-mention-regex

Include new lines in implicit mention regular expression
This commit is contained in:
Michael Vogel 2019-02-13 18:16:47 +01:00 committed by GitHub
commit a29b6f17e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -692,7 +692,7 @@ class Processor
$kept_mentions = [];
// 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) ) {
$kept_mentions[] = $matches[1];
}