You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

pofile

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pofile - npm Package Compare versions

Comparing version

to
0.2.8

13

lib/po.js

@@ -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*/, ''));

2

package.json
{
"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",