-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error while parsing semicolons #42
Comments
There doesn't seem to be any "official" spec just what's popular in implementations... and git is one example that does permit same-line comments: https://git-scm.com/docs/git-config Maybe an extra parse option is called for? |
Extra parsing option would work! |
i found this issue too. I have values containig html entities. Worked fine in Python... And it was also fixed in PHP (https://bugs.php.net/bug.php?id=51094). Extra parsing option could fix this. |
2k20 |
I have the same issue with ; and # both. The WinAPI does not allow comments in the key portion, so these characters are treated as part of the key's value. See https://en.wikipedia.org/wiki/INI_file#Comments_2 for reference. As stated above, parsing of ; and # in keys should be an option, not mandatory. I ended up forking the code for this reason, and ripped out the key comment processing bits. (I also converted it to Typescript for easier inclusion in a React-TS app) |
Ini spec only allows semicolons to be interpreted as comments when they are in the beginning of the line.
; comment
I'm experiencing bug when parsing the following keypair:
key=value;value;value
value;value;value
should be interpreted as a string and instead it's parsed only asvalue
and rest is ignored.Thanks for considering a fix!
The text was updated successfully, but these errors were encountered: