gulp-file-include
Advanced tools
Comparing version 0.7.0 to 0.7.1
@@ -142,4 +142,8 @@ 'use strict'; | ||
var data = JSON.parse(matches[3]); | ||
for (var k in data) { | ||
text = text.replace(new RegExp(prefix + k, 'g'), data[k]); | ||
// grab keys & sort by longest keys 1st to iterate in that order | ||
var keys = Object.keys(data).sort().reverse(); | ||
for (var i = 0; i < keys.length; i++) { | ||
var key = keys[i]; | ||
text = text.replace(new RegExp(prefix + key, 'g'), data[key]); | ||
} | ||
@@ -146,0 +150,0 @@ } |
{ | ||
"name": "gulp-file-include", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"description": "a gulp plugin for file include", | ||
@@ -37,3 +37,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"concat-stream": "^1.4.6", | ||
"concat-stream": "^1.4.7", | ||
"event-stream": "^3.1.7", | ||
@@ -40,0 +40,0 @@ "gulp-util": "^3.0.1" |
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
9741
145
Updatedconcat-stream@^1.4.7