mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
Potential fix for code scanning alert no. 590: Double escaping or unescaping
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
parent
8dda720a1c
commit
7a219a0dee
1 changed files with 1 additions and 1 deletions
|
@ -72,5 +72,5 @@ export const checkForTripleQuotesAndQueries = (
|
|||
* This function unescapes chars that are invalid in a Console string.
|
||||
*/
|
||||
export const unescapeInvalidChars = (str: string): string => {
|
||||
return str.replace(/\\\\/g, '\\').replace(/\\"/g, '"');
|
||||
return str.replace(/\\"/g, '"').replace(/\\\\/g, '\\');
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue