We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a04e81e commit 55c65b4Copy full SHA for 55c65b4
1 file changed
packages/database/scripts/createEnv.ts
@@ -61,7 +61,7 @@ const makeBranchEnv = async (vercel: Vercel) => {
61
if (branchM) branch = branchM;
62
else throw new Error("Could not find the git branch");
63
}
64
- if (!/^[-\w]$/.test(branch))
+ if (!/^[-\w]+$/.test(branch))
65
throw new Error("Invalid branch name: " + branch);
66
const result = await vercel.deployments.getDeployments({
67
...baseParams,
0 commit comments