Skip to content

Commit

Permalink
harden regular expression
Browse files Browse the repository at this point in the history
  • Loading branch information
vadimkibana committed Sep 18, 2024
1 parent fa686b9 commit ca329bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/kbn-esql-ast/src/antlr_error_listener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { ErrorListener } from 'antlr4';
import type { EditorError } from './types';
import { getPosition } from './ast_position_utils';

const REPLACE_DEV = /,*\s*DEV_\w+\s*/g;
const REPLACE_DEV = /,{0,1}(?<!\s)\s*DEV_\w+\s*/g;
export class ESQLErrorListener extends ErrorListener<any> {
protected errors: EditorError[] = [];

Expand Down

0 comments on commit ca329bc

Please sign in to comment.