Skip to content

Commit 55c65b4

Browse files
authored
ENG-710 typo in the regex (#325)
1 parent a04e81e commit 55c65b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/database/scripts/createEnv.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const makeBranchEnv = async (vercel: Vercel) => {
6161
if (branchM) branch = branchM;
6262
else throw new Error("Could not find the git branch");
6363
}
64-
if (!/^[-\w]$/.test(branch))
64+
if (!/^[-\w]+$/.test(branch))
6565
throw new Error("Invalid branch name: " + branch);
6666
const result = await vercel.deployments.getDeployments({
6767
...baseParams,

0 commit comments

Comments
 (0)