gulp-sitemap
Advanced tools
Comparing version 7.0.0 to 7.1.0
'use strict'; | ||
const path = require('path'); | ||
const fs = require('fs'); | ||
@@ -83,4 +82,10 @@ const defaults = require('lodash/defaults'); | ||
const reSourceMatch = /"((https?:\/\/)?[\w\.\/]+)"/ig; | ||
const html = fs.readFileSync(entry.source, { encoding : 'utf8'}); | ||
const URLs = html.match(reImageMatch).map(image => { | ||
const html = fs.readFileSync(entry.source, { encoding : 'utf8'}) | ||
const images = html.match(reImageMatch); | ||
if (images === null) { | ||
return []; | ||
} | ||
const URLs = images.map(image => { | ||
let currentURL = image.match(reSourceMatch)[0].replace(/^\"|\"$/ig, ''); | ||
@@ -87,0 +92,0 @@ |
{ | ||
"name": "gulp-sitemap", | ||
"version": "7.0.0", | ||
"version": "7.1.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
17527
243