Skip to content

Commit

Permalink
Support upper case in branch names for alias (#16)
Browse files Browse the repository at this point in the history
* Support upper case in branch names for alias

* Inc ver

---------

Co-authored-by: joshua-groger <[email protected]>
  • Loading branch information
fruitymedley and joshua-groger authored Jan 19, 2024
1 parent 78d41ca commit 157c873
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion vercel-deployment-task-source/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ async function run() {
getProjectName(vercelProjectId, vercelOrgId, vercelToken),
getStagingPrefix(vercelOrgId, vercelToken),
]);
const escapedBranchName = branchName.replace(/[^a-z0-9\-]-?/g, '-');
const escapedBranchName = branchName.replace(/[^a-zA-Z0-9\-]-?/g, '-');
const aliasHostname = `${projectName}-${escapedBranchName}-${stagingPrefix}.vercel.app`;
deployURL = `https://${aliasHostname}`;
vercel = tool(which("vercel", true));
Expand Down
2 changes: 1 addition & 1 deletion vercel-deployment-task-source/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"version": {
"Major": 1,
"Minor": 2,
"Patch": 2
"Patch": 3
},
"instanceNameFormat": "Deploying $(vercelProject) to Vercel",
"inputs": [
Expand Down
2 changes: 1 addition & 1 deletion vss-extension.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"manifestVersion": 1,
"id": "vercel-deployment-extension",
"name": "Vercel Deployment Extension",
"version": "1.2.2",
"version": "1.2.3",
"publisher": "Vercel",
"public": true,
"targets": [
Expand Down

0 comments on commit 157c873

Please sign in to comment.