grunt-appolo-assets-url-replace
Advanced tools
Comparing version 0.0.8 to 0.0.9
{ | ||
"name": "grunt-appolo-assets-url-replace", | ||
"description": "Grunt task to replace assets urls with absolute path", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Roman Svichar", |
@@ -71,3 +71,3 @@ | ||
imagePath.indexOf(";base64") == -1 && | ||
options.ext.indexOf(path.extname(imagePath)) > -1 ) { | ||
options.ext.indexOf(path.extname(imagePath.substr(0, imagePath.indexOf('?') > -1 ? imagePath.indexOf('?') : imagePath.length ))) > -1 ) { | ||
html = html.replace(match[0], 'src="'+ options.staticUrl + path.normalize('/'+ imagePath)+'"'); | ||
@@ -74,0 +74,0 @@ modified = true; |
21027
15