mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-10-01 01:26:10 -04:00
adjust regex due to StyleCI spacing change
This commit is contained in:
parent
e051cde317
commit
118c919663
@ -384,12 +384,11 @@ class Helper
|
|||||||
|
|
||||||
$file = PATH . 'lib' . DIRECTORY_SEPARATOR . 'Configuration.php';
|
$file = PATH . 'lib' . DIRECTORY_SEPARATOR . 'Configuration.php';
|
||||||
$content = preg_replace_callback(
|
$content = preg_replace_callback(
|
||||||
'#\'js/([a-z0-9.-]+.js)\' =\> \'([^\']*)\',#',
|
'#\'js/([a-z0-9.-]+.js)(\' +)=\> \'[^\']*\',#',
|
||||||
function ($matches) {
|
function ($matches) {
|
||||||
if (array_key_exists($matches[1], Helper::$hashes)) {
|
if (array_key_exists($matches[1], Helper::$hashes)) {
|
||||||
return '\'js/' . $matches[1] . '\' => \'sha512-' .
|
return '\'js/' . $matches[1] . $matches[2] .
|
||||||
Helper::$hashes[$matches[1]] .
|
'=> \'sha512-' . Helper::$hashes[$matches[1]] . '\',';
|
||||||
'\',';
|
|
||||||
} else {
|
} else {
|
||||||
return $matches[0];
|
return $matches[0];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user