Skip to content

Commit 747fad1

Browse files
committed
Fix wrong error reporting Huachao#551
1 parent 4bd6415 commit 747fad1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/providers/customVariableDiagnosticsProvider.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export class CustomVariableDiagnosticsProvider {
138138

139139
const vars = new Map<string, VariableWithPosition[]>();
140140
const lines = document.getText().split(Constants.LineSplitterRegex);
141-
const pattern = /\{\{([^\s\.{}]+)(\..*?)*\}\}/g;
141+
const pattern = /\{\{(\w[^\s\.{}]*)(\..*?)*\}\}/g;
142142
lines.forEach((line, lineNumber) => {
143143
let match: RegExpExecArray | null;
144144
while (match = pattern.exec(line)) {

0 commit comments

Comments
 (0)