gulp-parser-inline
Advanced tools
Comparing version 1.6.2 to 1.6.3
@@ -0,1 +1,8 @@ | ||
## [1.6.3](https://github.com/searchfe/gulp-parser-inline/compare/v1.6.2...v1.6.3) (2019-11-14) | ||
### Bug Fixes | ||
* update regext for modifyUrl function ([2ed2b53](https://github.com/searchfe/gulp-parser-inline/commit/2ed2b53d7889168d42bb7c16e18368838cb13888)) | ||
## [1.6.2](https://github.com/searchfe/gulp-parser-inline/compare/v1.6.1...v1.6.2) (2019-11-06) | ||
@@ -2,0 +9,0 @@ |
@@ -60,3 +60,3 @@ "use strict"; | ||
if (sourceMapPath) { | ||
content = content.replace(/(href=|src=)('|")(\/static\/\S+\.[a-zA-Z]+)('|")/g, function (all, href, quote, value) { | ||
content = content.replace(/(href|src)\s*=\s*('|")(\/static\/\S+\.[a-zA-Z]+)('|")/g, function (all, href, quote, value) { | ||
var fileMd5 = getFileDataFromResourceMap(path.resolve(process.cwd(), 'src' + value), sourceMapPath).md5; | ||
@@ -69,3 +69,3 @@ if (fileMd5) { | ||
} | ||
return href + quote + prefix + value + quote; | ||
return href + '=' + quote + prefix + value + quote; | ||
}); | ||
@@ -72,0 +72,0 @@ } |
{ | ||
"name": "gulp-parser-inline", | ||
"version": "1.6.2", | ||
"version": "1.6.3", | ||
"discription": "gulp-parser-inline", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is too big to display
591015