We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
String.validateSymbols() in ktoml-core-jvm:0.5.0 performs an extra trimQuotes(), which prevents assignment to quoted keys containing special symbols.
String.validateSymbols()
ktoml-core-jvm:0.5.0
trimQuotes()
For example, consider the following line of valid (per language docs) TOML:
"androidx.activity:activity-compose" = {}
This yields the following exception:
ParseException: <...>: Not able to parse the key: ["androidx.activity:activity-compose"] as it contains invalid symbols.
The text was updated successfully, but these errors were encountered:
Yes, looks like it needs to be fixed. But have you tried single quotes as a workaround?
Sorry, something went wrong.
+1 to this. Using single quotes succeeds to parse, but the resulting keys have the quotes in the name, i.e.:
'foo:' = 'bar'
Would result to:
mapOf("'foo:'" to "bar")
The quotes are applied inconsistently to the keys and values.
orchestr7
No branches or pull requests
String.validateSymbols()
inktoml-core-jvm:0.5.0
performs an extratrimQuotes()
, which prevents assignment to quoted keys containing special symbols.For example, consider the following line of valid (per language docs) TOML:
This yields the following exception:
The text was updated successfully, but these errors were encountered: