Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasArvidsson committed Dec 17, 2023
1 parent 3c6c510 commit f084dc4
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ export function validateQueryCaptures(file: string, rawQuery: string): void {
if (!allowedCaptures.has(captureName)) {
const text = match.input!.slice(0, match.index!);
const lineNumber = text.split("\n").length;
const capture = `@${captureName}`;
errors.push(`${file}(${lineNumber}) invalid capture '${capture}'.`);
errors.push(`${file}(${lineNumber}) invalid capture '@${captureName}'.`);
}
}

Expand Down

0 comments on commit f084dc4

Please sign in to comment.