grunt-inline
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -9,3 +9,3 @@ { | ||
"description": "Inlines img, script and link tags into the same file.", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"keywords": [ | ||
@@ -12,0 +12,0 @@ "gruntplugin", |
@@ -157,3 +157,3 @@ # grunt-inline[![build status](https://secure.travis-ci.org/miniflycn/grunt-inline.png)](http://travis-ci.org/miniflycn/grunt-inline) | ||
<img src="img/icon.png?__inline=true" /> | ||
<script src="js/erport.js?__inline=true"></script> | ||
@@ -215,2 +215,3 @@ </body> | ||
## Release History | ||
* 2014-06-15 v0.3.1 bug fix: when options.tag is '', then all img tags, whose src attribute has already been inlined will be matched. | ||
* 2014-05-19 v0.3.0 support for new options.exts | ||
@@ -217,0 +218,0 @@ * 2014-05-19 v0.2.9 bug fix: options.tag is assigned '', bug image url in css are not converted to base64 formate |
@@ -11,3 +11,3 @@ /* | ||
module.exports = function(grunt) { | ||
var path = require('path'); | ||
@@ -132,3 +132,3 @@ var datauri = require('datauri'); | ||
return ret; | ||
}).replace(/<img.+?src=["']([^"']+?)["'].*?\/?\s*?>/g, function(matchedWord, src){ | ||
}).replace(/<img.+?src=["']([^"':]+?)["'].*?\/?\s*?>/g, function(matchedWord, src){ | ||
var ret = matchedWord; | ||
@@ -135,0 +135,0 @@ |
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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
78438
0
100
225