Regex fix

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2016-11-10 16:20:50 +01:00 committed by Roeland Jago Douma
parent 3b62003c9c
commit 9a21d98824
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ class SCSSCacher {
* @return string
*/
private function rebaseUrls($css) {
$re = '/url\([\'"](.*)[\'"]\)/x';
$re = '/url\([\'"]([\.\w?=\/-]*)[\'"]\)/x';
$subst = 'url(\'../../../'.$this->rootCssLoc.'/$1\')';
return preg_replace($re, $subst, $css);
}