Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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 0.3.0 to 1.0.0

13

lib/po.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc