aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/Parsing/ParserMode/Wordblock.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/Parsing/ParserMode/Wordblock.php')
-rw-r--r--inc/Parsing/ParserMode/Wordblock.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/Parsing/ParserMode/Wordblock.php b/inc/Parsing/ParserMode/Wordblock.php
index 50b24b2db..64d377fe0 100644
--- a/inc/Parsing/ParserMode/Wordblock.php
+++ b/inc/Parsing/ParserMode/Wordblock.php
@@ -9,7 +9,7 @@ use dokuwiki\Parsing\Lexer\Lexer;
*/
class Wordblock extends AbstractMode
{
- protected $badwords = array();
+ protected $badwords = [];
protected $pattern = '';
/**
@@ -31,7 +31,7 @@ class Wordblock extends AbstractMode
$sep = '';
foreach ($this->badwords as $badword) {
- $this->pattern .= $sep.'(?<=\b)(?i)'. Lexer::escape($badword).'(?-i)(?=\b)';
+ $this->pattern .= $sep . '(?<=\b)(?i)' . Lexer::escape($badword) . '(?-i)(?=\b)';
$sep = '|';
}
}