Comparing version 1.0.0 to 1.0.1
@@ -67,3 +67,8 @@ var fs = require('fs'); | ||
var sections = data.split(/\n\n/); | ||
var headers = sections.shift(); | ||
var headers = [sections.shift()]; | ||
//everything until the first 'msgid ""' is considered header | ||
while (headers[headers.length - 1].indexOf('msgid ""') < 0) { | ||
headers.push(sections.shift()); | ||
} | ||
headers = headers.join('\n'); | ||
var lines = sections.join('\n').split(/\n/); | ||
@@ -70,0 +75,0 @@ |
{ | ||
"name": "pofile", | ||
"description": "Parse and serialize Gettext PO files.", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"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
18744
334