po-catalog-loader
Advanced tools
Comparing version 1.1.0 to 1.2.0
15
index.js
@@ -18,11 +18,14 @@ var gettextParser = require('gettext-parser'); | ||
var reference = (msg.comments || {}).reference || '<unknown>'; | ||
var filename = reference.split(/:/)[0]; | ||
var references = ((msg.comments || {}).reference || '<unknown>').split(/\n/); | ||
for (var i = 0; i < extensions.length; i++) { | ||
var ext = extensions[i]; | ||
if (filename.substr(filename.length - ext.length) == ext) { | ||
return false; | ||
for (var i = 0; i < references.length; i++) { | ||
var filename = references[i].split(/:/)[0]; | ||
for (var j = 0; j < extensions.length; j++) { | ||
var ext = extensions[j]; | ||
if (filename.substr(filename.length - ext.length) == ext) { | ||
return false; | ||
} | ||
} | ||
} | ||
return true; | ||
@@ -29,0 +32,0 @@ } |
{ | ||
"name": "po-catalog-loader", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "A loader that can load PO files and convert them into JSON data.", | ||
@@ -5,0 +5,0 @@ "author": "getsentry", |
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
2204
51