mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ReplaceText
synced 2024-11-27 16:10:15 +00:00
build: Updating composer dependencies
* mediawiki/mediawiki-phan-config: 0.10.6 → 0.11.0 * php-parallel-lint/php-parallel-lint: 1.3.0 → 1.3.1 Change-Id: I33ceb173eb7775833a00dd4ae1761df5e4a4c4d0
This commit is contained in:
parent
78e75ed030
commit
a765c687c9
|
@ -1,10 +1,10 @@
|
|||
{
|
||||
"require-dev": {
|
||||
"mediawiki/mediawiki-codesniffer": "37.0.0",
|
||||
"mediawiki/mediawiki-phan-config": "0.10.6",
|
||||
"mediawiki/mediawiki-phan-config": "0.11.0",
|
||||
"mediawiki/minus-x": "1.1.1",
|
||||
"php-parallel-lint/php-console-highlighter": "0.5.0",
|
||||
"php-parallel-lint/php-parallel-lint": "1.3.0"
|
||||
"php-parallel-lint/php-parallel-lint": "1.3.1"
|
||||
},
|
||||
"scripts": {
|
||||
"fix": [
|
||||
|
|
|
@ -159,7 +159,7 @@ class ReplaceAll extends Maintenance {
|
|||
|
||||
$this->target[] = $field[0];
|
||||
$this->replacement[] = $field[1];
|
||||
$this->useRegex[] = isset( $field[2] ) ? true : false;
|
||||
$this->useRegex[] = isset( $field[2] );
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -806,6 +806,7 @@ class SpecialReplaceText extends SpecialPage {
|
|||
$contextBefore = $wgLang->truncateForDatabase( $contextBefore, -$cw, '...', false );
|
||||
$contextAfter = $wgLang->truncateForDatabase( $contextAfter, $cw, '...', false );
|
||||
|
||||
// @phan-suppress-next-line SecurityCheck-DoubleEscaped T290624
|
||||
$context .= $this->convertWhiteSpaceToHTML( $contextBefore );
|
||||
$snippet = $this->convertWhiteSpaceToHTML( substr( $text, $index, $len ) );
|
||||
if ( $use_regex ) {
|
||||
|
@ -816,6 +817,7 @@ class SpecialReplaceText extends SpecialPage {
|
|||
}
|
||||
$context .= preg_replace( $targetStr, '<span class="ext-replacetext-searchmatch">\0</span>', $snippet );
|
||||
|
||||
// @phan-suppress-next-line SecurityCheck-DoubleEscaped T290624
|
||||
$context .= $this->convertWhiteSpaceToHTML( $contextAfter );
|
||||
}
|
||||
return $context;
|
||||
|
|
Loading…
Reference in a new issue