Rebuild minified Javascript files and fix a deprecation notice

This commit is contained in:
Frédéric Guillot
2020-10-04 10:50:28 -07:00
parent 0cfc6162c5
commit 5c9b73006d
2 changed files with 8 additions and 3 deletions

View File

@@ -525,7 +525,7 @@ class CSS extends Minify
);
return preg_replace_callback(
'/(?<=[: ])('.implode(array_keys($colors), '|').')(?=[; }])/i',
'/(?<=[: ])('.implode('|', array_keys($colors)).')(?=[; }])/i',
function ($match) use ($colors) {
return $colors[strtoupper($match[0])];
},