Comparing version 0.3.0 to 1.0.0
@@ -10,2 +10,3 @@ var fs = require('fs'); | ||
this.comments = []; | ||
this.extractedComments = []; | ||
this.headers = {}; | ||
@@ -27,2 +28,7 @@ this.items = []; | ||
} | ||
if (this.extractedComments) { | ||
this.extractedComments.forEach(function (comment) { | ||
lines.push('#. ' + comment); | ||
}); | ||
} | ||
@@ -91,6 +97,7 @@ lines.push('msgid ""'); | ||
}, []).forEach(function (header) { | ||
if (header.match(/^#/)) { | ||
if (header.match(/^#\./)) { | ||
po.extractedComments.push(header.replace(/^#\.\s*/, '')); | ||
} else if (header.match(/^#/)) { | ||
po.comments.push(header.replace(/^#\s*/, '')); | ||
} | ||
if (header.match(/^"/)) { | ||
} else if (header.match(/^"/)) { | ||
header = header.trim().replace(/^"/, '').replace(/\\n"$/, ''); | ||
@@ -97,0 +104,0 @@ var p = header.split(/:/); |
{ | ||
"name": "pofile", | ||
"description": "Parse and serialize Gettext PO files.", | ||
"version": "0.3.0", | ||
"version": "1.0.0", | ||
"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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
18531
329
0