Comparing version 0.2.7 to 0.2.8
@@ -77,3 +77,14 @@ var fs = require('fs'), | ||
headers.split(/\n/).forEach(function (header) { | ||
headers.split(/\n/).reduce(function (acc, line) { | ||
if (acc.merge) { | ||
//join lines, remove last resp. first " | ||
line = acc.pop().slice(0, -1) + line.slice(1); | ||
delete acc.merge; | ||
} | ||
if (/^".*"$/.test(line) && !/^".*\\n"$/.test(line)) { | ||
acc.merge = true; | ||
} | ||
acc.push(line); | ||
return acc; | ||
}, []).forEach(function (header) { | ||
if (header.match(/^#/)) { | ||
@@ -80,0 +91,0 @@ po.comments.push(header.replace(/^#\s*/, '')); |
{ | ||
"name": "pofile", | ||
"description": "Parse and serialize Gettext PO files.", | ||
"version": "0.2.7", | ||
"version": "0.2.8", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Ruben Vermeersch", |
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
14490
238