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 51b9e43 commit 5ac9cae
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ export function validateQueryCaptures(file: string, rawQuery: string): void {

for (const match of matches) {
const captureName = match[1];

if (!allowedCaptures.has(captureName)) {
const lineNumber = match.input!.slice(0, match.index!).split("\n").length;
errors.push(`${file}(${lineNumber}) invalid capture '@${captureName}'.`);
Expand Down

0 comments on commit 5ac9cae

Please sign in to comment.