Regex fix
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
parent
3b62003c9c
commit
9a21d98824
|
@ -156,7 +156,7 @@ class SCSSCacher {
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
private function rebaseUrls($css) {
|
private function rebaseUrls($css) {
|
||||||
$re = '/url\([\'"](.*)[\'"]\)/x';
|
$re = '/url\([\'"]([\.\w?=\/-]*)[\'"]\)/x';
|
||||||
$subst = 'url(\'../../../'.$this->rootCssLoc.'/$1\')';
|
$subst = 'url(\'../../../'.$this->rootCssLoc.'/$1\')';
|
||||||
return preg_replace($re, $subst, $css);
|
return preg_replace($re, $subst, $css);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue