gulp-sitemap
Advanced tools
Comparing version 4.3.0 to 5.0.0
@@ -41,7 +41,4 @@ 'use strict'; | ||
var indexRegex = /(\/|\\|^)index\.html?$/; | ||
//turn index.html into -> / | ||
var relativeFile = relativePath.replace(indexRegex, function(string, match) { | ||
return match.slice(0, 1) === '/' ? '/' : ''; | ||
}, 'i'); | ||
var relativeFile = relativePath.replace(/(\/|\\|^)index\.html?$/, '/'); | ||
//url location. Use slash to convert windows \\ or \ to / | ||
@@ -48,0 +45,0 @@ var adjustedFile = slash(relativeFile); |
{ | ||
"name": "gulp-sitemap", | ||
"version": "4.3.0", | ||
"version": "5.0.0", | ||
"description": "Generate a search engine friendly sitemap.xml using a Gulp stream", | ||
@@ -5,0 +5,0 @@ "repository": "pgilad/gulp-sitemap", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15130
188