java-properties
Advanced tools
Comparing version 0.1.4 to 0.1.5
@@ -29,6 +29,6 @@ /* | ||
var get = function(key) { | ||
var rawValue = objs[key]; | ||
if (rawValue) { | ||
return interpolate(rawValue); | ||
} | ||
if (objs.hasOwnProperty(key)) { | ||
return typeof objs[key] === 'undefined' ? '' : interpolate(objs[key]); | ||
} | ||
return undefined; | ||
}; | ||
@@ -35,0 +35,0 @@ var set = function(key, value) { |
{ | ||
"name": "java-properties", | ||
"description": "Reads and interpolates Java .properties files", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"homepage": "http://github.com/mattdsteele/java-properties", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -105,3 +105,8 @@ 'use strict'; | ||
test.done(); | ||
}, | ||
'empty string' : function (test) { | ||
test.expect(1); | ||
test.equal('', props.get('property.emptyString')); | ||
test.done(); | ||
} | ||
}; |
Sorry, the diff of this file is not supported yet
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
9375
195