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

Lone quote in string isn't parsed correctly #368

Open
Aplet123 opened this issue Jun 25, 2021 · 1 comment · May be fixed by #373
Open

Lone quote in string isn't parsed correctly #368

Aplet123 opened this issue Jun 25, 2021 · 1 comment · May be fixed by #373
Labels
component: decoder Related to parsing in `toml.load` syntax: strings Related to string literals type: bug A confirmed bug or unintended behavior

Comments

@Aplet123
Copy link

Something like the following:

a = "\""

Should parse as {"a": "\""} but instead parses as {"a": ""}. Minimal example:

toml.loads(toml.dumps({"a": "\""}))
# {"a": ""}
arturoeanton added a commit to arturoeanton/toml that referenced this issue Jul 13, 2021
@Holzhaus
Copy link

Holzhaus commented Mar 3, 2022

I can reproduce this.

@pradyunsg pradyunsg added type: bug A confirmed bug or unintended behavior component: decoder Related to parsing in `toml.load` syntax: strings Related to string literals labels Apr 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: decoder Related to parsing in `toml.load` syntax: strings Related to string literals type: bug A confirmed bug or unintended behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants