grunt-appolo-assets-url-replace
Advanced tools
Comparing version 0.0.5 to 0.0.6
{ | ||
"name": "grunt-appolo-assets-url-replace", | ||
"description": "Grunt task to replace assets urls with absolute path", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Roman Svichar", |
@@ -40,4 +40,5 @@ | ||
if (imagePath.indexOf("http://") == -1 && | ||
imagePath.indexOf("https://") == -1 && | ||
if (!imagePath.startsWith("http://") && | ||
!imagePath.startsWith("https://") && | ||
!imagePath.startsWith("//") && | ||
imagePath.indexOf(";base64") == -1 && | ||
@@ -64,4 +65,5 @@ options.ext.indexOf(path.extname(imagePath)) > -1 ) { | ||
if (imagePath.indexOf("http://") == -1 && | ||
imagePath.indexOf("https://") == -1 && | ||
if (!imagePath.startsWith("http://") && | ||
!imagePath.startsWith("https://") && | ||
!imagePath.startsWith("//") && | ||
imagePath.indexOf(";base64") == -1 && | ||
@@ -77,5 +79,5 @@ options.ext.indexOf(path.extname(imagePath)) > -1 ) { | ||
if (imagePath.indexOf("http://") == -1 && | ||
imagePath.indexOf("https://") == -1 && | ||
imagePath.indexOf(";base64") == -1 && | ||
if (!imagePath.startsWith("http://") && | ||
!imagePath.startsWith("https://") && | ||
!imagePath.startsWith("//") && | ||
options.ext.indexOf(path.extname(imagePath)) > -1 ) { | ||
@@ -82,0 +84,0 @@ html = html.replace(match[0], 'href="'+ options.staticUrl + path.normalize('/'+ imagePath)+'"'); |
7690
126