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

Standalone \r is accepted by iarna-toml but forbidden by the spec #56

Open
mwcz opened this issue Mar 8, 2024 · 0 comments
Open

Standalone \r is accepted by iarna-toml but forbidden by the spec #56

mwcz opened this issue Mar 8, 2024 · 0 comments

Comments

@mwcz
Copy link

mwcz commented Mar 8, 2024

A multi-line literal string like:

foo = '''\r'''

Is successfully parsed by this module, but per the spec \r is only allowed in multi-line literal strings when followed by \n.

I found this when I came across a string with \r\r that threw an error in the Rust toml crate, but toml-lint.com (powered by iarna-toml) said it was valid.

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

No branches or pull requests

1 participant