java-properties
Advanced tools
Comparing version 0.2.7 to 0.2.8
@@ -55,3 +55,3 @@ /* | ||
// the key does not exists | ||
this.objs[key] = value; | ||
this.objs[key] = unescape(JSON.parse('"' + value.replace('"', '\\"') + '"')); | ||
} | ||
@@ -58,0 +58,0 @@ } |
{ | ||
"name": "java-properties", | ||
"description": "Reads and interpolates Java .properties files", | ||
"version": "0.2.7", | ||
"version": "0.2.8", | ||
"homepage": "http://github.com/mattdsteele/java-properties", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -80,4 +80,5 @@ # java-properties | ||
* 0.2.7 Get only last value for int and boolean in case of multivalued attribute | ||
* 0.2.8 FIX unicode \uxxxx char decoding | ||
## License | ||
Licensed under the MIT license. |
@@ -295,3 +295,11 @@ 'use strict'; | ||
test.done(); | ||
}, | ||
'utf8 strings' : function(test) { | ||
test.expect(2); | ||
var myFile = new PropertiesFile('test/fixtures/utf8.properties'); | ||
var str = myFile.get('utf8.string'); | ||
test.equal(str, '\u2601 a string with accent : crédits seront très bientôt épuisés'); | ||
test.equal(str.charAt(0),String.fromCharCode(0x2601)); | ||
test.done(); | ||
} | ||
}; |
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
26611
16
521
84