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

Multiline JSON strings break the rich editor #11136

Open
data-sync-user opened this issue Aug 1, 2024 · 0 comments
Open

Multiline JSON strings break the rich editor #11136

data-sync-user opened this issue Aug 1, 2024 · 0 comments

Comments

@data-sync-user
Copy link
Collaborator

Add a feature config value of:

{
  "key": "
  "
}

and the editor will break. The following exception is logged in the console:

Uncaught SyntaxError: JSON.parse: bad control character in string literal at line 2 column 26 of the JSON data
    schemaLinter validators.ts:151

It seems that jsonToAst() doesnt catch this error, but when we try to json.parse assuming that the input was valid we hit it.

┆Issue is synchronized with this Jira Bug

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