Comparing version 2.1.0 to 2.1.1
@@ -31,3 +31,3 @@ "use strict"; | ||
get: function get(key) { | ||
var keyParts = /^([^\.]*)(\.(.*))?$/.exec(key), | ||
var keyParts = /^([^\.]*)(\.(.*))?$/m.exec(key), | ||
prefix = keyParts[1], | ||
@@ -34,0 +34,0 @@ property = keyParts[3] || "", |
{ | ||
"name": "i18n-core", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "Basic i18n translation.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -57,2 +57,12 @@ "use strict"; | ||
test("load a problematic string", function (done) { | ||
var strategy = require("../../lookup/folder/json"), | ||
lookup = fs(folder, strategy), | ||
problemString = ".\n"; | ||
strategy.load = function () { return null; }; | ||
expect(lookup.get(problemString)).to.equal(undefined); | ||
done(); | ||
}); | ||
lab.experiment("fs errors", function () { | ||
@@ -59,0 +69,0 @@ var mockery = require("mockery"), |
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
27514
745