properties-parser
Advanced tools
Comparing version 0.4.0 to 0.5.0
@@ -75,2 +75,3 @@ var fs = require("fs"); | ||
while((curChar = iter.peek()) !== null) { | ||
if(startsLineBreak(iter)) { children.push(consumeLineBreak(iter)); continue; } | ||
if(startsSeparator(curChar)) { break; } | ||
@@ -77,0 +78,0 @@ if(startsEscapedVal(curChar)) { children.push(consumeEscapedVal(iter)); continue; } |
{ | ||
"name": "properties-parser", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"description": "A parser for .properties files written in javascript", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -18,2 +18,3 @@ var fs = require("fs"); | ||
assert.equal(data["null-prop"], ''); | ||
assert.equal(data["foofoo"], 'barbar'); | ||
assert.ok(data["valueOf"] == null, "Properties are set that shouldn't be (valueOf)"); | ||
@@ -125,3 +126,6 @@ assert.ok(data["toString"] == null, "Properties are set that shouldn't be (toString)"); | ||
'another-test :whatever\n' + | ||
' null-prop' | ||
' null-prop\n' + | ||
'foo\\\n' + | ||
' foo=bar\\\n' + | ||
' bar\n' | ||
); | ||
@@ -155,3 +159,3 @@ | ||
// javac ReadProperties.java | ||
// java ReadProperties test-cases.properties | ||
// javac ReadProperties.java |
Sorry, the diff of this file is not supported yet
23229
474