gettext-parser
Advanced tools
Comparing version 5.1.1 to 5.1.2
@@ -185,3 +185,9 @@ const { Buffer } = require('safe-buffer'); | ||
if (escapeCharacters) { | ||
lines = value.split(/(?<=\\n)/); | ||
lines = value.split(/\\n/g); | ||
for (let i = 0; i < lines.length - 1; i++) { | ||
lines[i] = `${lines[i]}\\n`; | ||
} | ||
if (lines.length && lines[lines.length - 1] === '') { | ||
lines.splice(-1, 1); | ||
} | ||
} | ||
@@ -188,0 +194,0 @@ } |
{ | ||
"name": "gettext-parser", | ||
"description": "Parse and compile gettext po and mo files to/from json, nothing more, nothing less", | ||
"version": "5.1.1", | ||
"version": "5.1.2", | ||
"author": "Andris Reinman", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
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
53103
1254