You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
If we have a section with an empty line between [section name] and key-value pairs, section is loaded with empty object instead of key-value pairs.
Example :
[SectionA]
Key1=val1
key2=val2
in the above section, there is an empty line after the SectionA declaration, which is causing the section to be loaded with empty object instead of the actual key-value pairs.
In a typical ini format, we will have spaces, empty lines after the section declaration and before key-value pairs, looks like parser is checking for line.length == 0 and assigning null to section. A fix would be to just return instead of assigning null to section.
Let me know if this not an issue at all.
Thanks,
Venu.
The text was updated successfully, but these errors were encountered:
If we have a section with an empty line between [section name] and key-value pairs, section is loaded with empty object instead of key-value pairs.
Example :
[SectionA]
Key1=val1
key2=val2
in the above section, there is an empty line after the SectionA declaration, which is causing the section to be loaded with empty object instead of the actual key-value pairs.
In a typical ini format, we will have spaces, empty lines after the section declaration and before key-value pairs, looks like parser is checking for line.length == 0 and assigning null to section. A fix would be to just return instead of assigning null to section.
Let me know if this not an issue at all.
Thanks,
Venu.
The text was updated successfully, but these errors were encountered: