Skip to content
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

backslashes not handled correctly #5

Open
glyph opened this issue Mar 6, 2019 · 1 comment · May be fixed by #6
Open

backslashes not handled correctly #5

glyph opened this issue Mar 6, 2019 · 1 comment · May be fixed by #6

Comments

@glyph
Copy link

glyph commented Mar 6, 2019

>>> from logfmt import format, parse
>>> list(parse(list(format({"key1": "hi\\"}))))
[{'key1': True}]

Not sure how it got to True there but this behavior is not correct :)

@vaibhavt19
Copy link

Similar issue here while parsing the escape char

I'm trying to parse quotes on logfmt format but, the value after the quote become new key with value "True".
import logfmt from logfmt import format import io raw_text=io.StringIO("ts=1579739313\"80007168") rawdata=logfmt.parse(raw_text) for i in rawdata: print(i)
output
{'ts': '1579739313', '80007168': True}

@huww98 huww98 linked a pull request Dec 20, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants