mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
[Canvas] Fix unescaped backslashes (#196311)
Fixes unescaped backslashes in Canvas autocomplete
This commit is contained in:
parent
ceea2ce6a5
commit
7217b51452
1 changed files with 1 additions and 1 deletions
|
@ -439,7 +439,7 @@ function maybeQuote(value: any) {
|
|||
if (value.match(/^\{.*\}$/)) {
|
||||
return value;
|
||||
}
|
||||
return `"${value.replace(/"/g, '\\"')}"`;
|
||||
return `"${value.replace(/[\\"]/g, '\\$&')}"`;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue