gettext-parser
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -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 |
@@ -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": [ |
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
45340
1138
10