node-properties icon indicating copy to clipboard operation
node-properties copied to clipboard

Empty/Null property not found

Open jmengelle opened this issue 9 years ago • 2 comments

When i have the following :

a=
b=${a}

I got an error because 'a' property is not found.

I guess it's because null properties are ignored ? Would be great to add an option for this.

I added this reviver function to avoid the error, by returning and empty string, but it's not really what i want :

reviver: function (key, value, section) {
    if (key != null && value == null) {
        return '';
    } else {
        //Returns all the lines
        return this.assert();
    }
}

jmengelle avatar Dec 02 '15 10:12 jmengelle

I've run into the same issue where I have a blank value in one of my properties. Are there any plans to support this?

lewisdawson avatar Mar 07 '16 01:03 lewisdawson

I have the same issue, too. When I want to set an empty string value, it will be parsed into 'null'. Do you have any plans to fix it ?

Corey600 avatar Aug 31 '16 02:08 Corey600