[ES|QL] Attempt to fix the code scan report problem (#215278)

## Summary

Closes https://github.com/elastic/kibana-team/issues/1568
This commit is contained in:
Stratoula Kalafateli 2025-03-24 09:46:06 +01:00 committed by GitHub
parent 9fd3771061
commit 17ecc6a9f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -66,7 +66,7 @@ export const useDebounceWithOptions = (
// Quotes can be used as separators for multiple warnings unless
// they are escaped with backslashes. This regexp will match any
// quoted string that is not escaped.
const quotedWarningMessageRegexp = /"[^"\\]*(?:\\.[^"\\]*)*?"/g;
const quotedWarningMessageRegexp = /"([^"\\]|\\.)*"/g;
export const parseWarning = (warning: string): MonacoMessage[] => {
if (quotedWarningMessageRegexp.test(warning)) {