mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
[ES|QL] Fixes regex scan alert (#214443)
## Summary Fixes https://github.com/elastic/kibana-team/issues/1561
This commit is contained in:
parent
a9352bb572
commit
121563dedf
1 changed files with 1 additions and 1 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue