Skip to content

Commit eff5f1f

Browse files
committed
Fix regex expression
1 parent 9f04c71 commit eff5f1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/ql-vscode/src/skeleton-query-wizard.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ export class SkeletonQueryWizard {
187187
const folderUri = Uri.file(join(this.qlPackStoragePath, folderName));
188188
const files = await workspace.fs.readDirectory(folderUri);
189189
const qlFiles = files.filter(([filename, _fileType]) =>
190-
filename.match(/example[0-9]*.ql/),
190+
filename.match(/^example[0-9]*\.ql$/),
191191
);
192192

193193
return `example${qlFiles.length + 1}.ql`;

0 commit comments

Comments
 (0)