gulp-sitemap
Advanced tools
Comparing version 7.2.0 to 7.3.0
@@ -12,3 +12,3 @@ 'use strict'; | ||
'<?xml version="1.0" encoding="UTF-8"?>', | ||
'<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">' | ||
'<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">' | ||
]; | ||
@@ -81,3 +81,3 @@ | ||
function getImagesUrl(entry, siteConfig) { | ||
const reImageMatch = /<img\s+src="((https?:\/\/)?[\w\.\/]+)"\s+alt="[\w\.a/]*"\/?>/ig; | ||
const reImageMatch = /<img\s+src="((https?:\/\/)?[\w\.\/]+)"/ig; | ||
const reSourceMatch = /"((https?:\/\/)?[\w\.\/]+)"/ig; | ||
@@ -84,0 +84,0 @@ const html = fs.readFileSync(entry.source, { encoding : 'utf8'}) |
{ | ||
"name": "gulp-sitemap", | ||
"version": "7.2.0", | ||
"version": "7.3.0", | ||
"description": "Generate a search engine friendly sitemap.xml using a Gulp stream", | ||
@@ -5,0 +5,0 @@ "repository": "pgilad/gulp-sitemap", |
18052