Skip to content

Commit 17ecc6a

Browse files
authored
[ES|QL] Attempt to fix the code scan report problem (#215278)
## Summary Closes elastic/kibana-team#1568
1 parent 9fd3771 commit 17ecc6a

File tree

1 file changed

+1
-1
lines changed
  • src/platform/packages/private/kbn-esql-editor/src

1 file changed

+1
-1
lines changed

src/platform/packages/private/kbn-esql-editor/src/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export const useDebounceWithOptions = (
6666
// Quotes can be used as separators for multiple warnings unless
6767
// they are escaped with backslashes. This regexp will match any
6868
// quoted string that is not escaped.
69-
const quotedWarningMessageRegexp = /"[^"\\]*(?:\\.[^"\\]*)*?"/g;
69+
const quotedWarningMessageRegexp = /"([^"\\]|\\.)*"/g;
7070

7171
export const parseWarning = (warning: string): MonacoMessage[] => {
7272
if (quotedWarningMessageRegexp.test(warning)) {

0 commit comments

Comments
 (0)