1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/15348] Ignore smilies that are immediately followed by a word

PHPBB3-15348
This commit is contained in:
JoshyPHP
2017-09-06 03:35:26 +02:00
parent 1e605efaf1
commit 837dc9b3a7
4 changed files with 38 additions and 0 deletions

View File

@@ -323,6 +323,9 @@ class factory implements \phpbb\textformatter\cache_interface
// Only parse emoticons at the beginning of the text or if they're preceded by any
// one of: a new line, a space, a dot, or a right square bracket
$configurator->Emoticons->notAfter = '[^\\n .\\]]';
// Ignore emoticons that are immediately followed by a "word" character
$configurator->Emoticons->notBefore = '\\w';
}
// Load the censored words