Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gettext-parser

Package Overview
Dependencies
Maintainers
2
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gettext-parser - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

1

CHANGELOG.md

@@ -44,2 +44,3 @@ # Change Log

[1.3.0]: https://github.com/smhg/gettext-parser/compare/v1.2.2...v1.3.0
[1.2.2]: https://github.com/smhg/gettext-parser/compare/v1.2.1...v1.2.2

@@ -46,0 +47,0 @@ [1.2.1]: https://github.com/smhg/gettext-parser/compare/v1.2.0...v1.2.1

2

lib/poparser.js

@@ -498,3 +498,3 @@ 'use strict';

// chunk might be empty if it only contined of 8bit bytes and these were all cached
// chunk might be empty if it only continued of 8bit bytes and these were all cached
if (chunk.length) {

@@ -501,0 +501,0 @@ this._parser._lexer(this._parser._toString(chunk));

@@ -110,5 +110,8 @@ 'use strict';

} else if (pos + curLine.length < len) {
// if we're not at the end
if ((match = curLine.match(/(\s+)[^\s]*$/)) && match.index > 0) {
// use everything before and including the last white space character (if this isn't the first character)
curLine = curLine.substr(0, match.index + match[1].length);
} else if ((match = curLine.match(/([\x21-\x40\x5b-\x60\x7b-\x7e]+)[^\x21-\x40\x5b-\x60\x7b-\x7e]*$/)) && match.index > 0) {
} else if ((match = curLine.match(/([\x21-\x2f0-9\x5b-\x60\x7b-\x7e]+)[^\x21-\x2f0-9\x5b-\x60\x7b-\x7e]*$/)) && match.index > 0) {
// use everything before and including the last "special" character (if this isn't the first character)
curLine = curLine.substr(0, match.index + match[1].length);

@@ -115,0 +118,0 @@ }

{
"name": "gettext-parser",
"description": "Parse and compile gettext po and mo files to/from json, nothing more, nothing less",
"version": "1.3.0",
"version": "1.3.1",
"author": "Andris Reinman",

@@ -33,6 +33,6 @@ "contributors": [

"eslint-plugin-import": "^2.7.0",
"eslint-plugin-node": "^5.1.1",
"eslint-plugin-node": "^6.0.0",
"eslint-plugin-promise": "^3.5.0",
"eslint-plugin-standard": "^3.0.1",
"mocha": "^3.5.0"
"mocha": "^3.5.3"
},

@@ -39,0 +39,0 @@ "keywords": [

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