Permalink
Browse files

fix relative image path for list-style-image css property

  • Loading branch information...
empk committed Apr 4, 2013
1 parent e6a2c5f commit 41c2360c79bebcd504dc3a9daad919f87ee891fe
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Munee/Asset/Type/Css.php
@@ -150,7 +150,7 @@ protected function _isScss($file)
*/
protected function _fixRelativeImagePaths($content, $originalFile)
{
$regEx = '%(background(?:-image)?:.*?url[\\s]*\()[\\s\'"]*(\.\.[^\\)\'"]*)[\\s\'"]*(\\)[\\s]*)%';
$regEx = '%((?:background(?:-image)?|list-style-image):.*?url[\\s]*\()[\\s\'"]*(\.\.[^\\)\'"]*)[\\s\'"]*(\\)[\\s]*)%';
$changedContent = preg_replace_callback($regEx, function($match) use ($originalFile) {
$basePath = str_replace(WEBROOT, '', dirname($originalFile)) . '/' . trim($match[2]);

0 comments on commit 41c2360

Please sign in to comment.