grunt-concat-i18n
Advanced tools
Comparing version 0.1.12 to 0.1.13
{ | ||
"name": "grunt-concat-i18n", | ||
"version": "0.1.12", | ||
"version": "0.1.13", | ||
"dependencies": { | ||
@@ -5,0 +5,0 @@ "abbrev": { |
{ | ||
"name": "grunt-concat-i18n", | ||
"version": "0.1.12", | ||
"version": "0.1.13", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -76,3 +76,4 @@ module.exports = function(grunt) { | ||
let content = fs.readFileSync(localSrc[j]); | ||
concat += iconv.decode(content, 'latin1').replace(/\'\'/g, '\''); | ||
// This will parse the string, decode any Unicode codepoints (\u6040) and replace our double '' for strings with a single ' | ||
concat += iconv.decode(content, 'latin1').replace(/\\u([0-9a-fA-F]{4})/g, (m,cc)=>String.fromCharCode("0x" + cc)).replace(/\'\'/g, '\''); | ||
} | ||
@@ -79,0 +80,0 @@ fs.writeFileSync(output, concat); |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
15377
338
0