Skip to content

Commit 27c171c

Browse files
author
Dave Bartolomeo
committed
Add missing escape
1 parent 822b565 commit 27c171c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/build-tasks/src/deploy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ export async function deployPackage(packageJsonPath: string): Promise<DeployedPa
154154

155155
if (isDevBuild) {
156156
// NOTE: rootPackage.name had better not have any regex metacharacters
157-
const oldDevBuildPattern = new RegExp('^' + rootPackage.name + '[^/]+-dev[0-9.]+.vsix$');
157+
const oldDevBuildPattern = new RegExp('^' + rootPackage.name + '[^/]+-dev[0-9.]+\\.vsix$');
158158
// Dev package filenames are of the form
159159
// vscode-codeql-0.0.1-dev.2019.9.27.19.55.20.vsix
160160
(await fs.readdir(distDir)).filter(name => name.match(oldDevBuildPattern)).map(build => {

0 commit comments

Comments
 (0)