Skip to content

Commit

Permalink
who doesn't like codeql :)
Browse files Browse the repository at this point in the history
  • Loading branch information
zineanteoh committed Oct 11, 2023
1 parent 5f83c1b commit 3e72230
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/cli-util/modify-team.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ const changeDevpostLink = async (team: TeamData) => {

// link has to have host devpost.com
const check = new URL(newDevpostLink);
if (!check.host.includes('devpost.com')) {
const allowedHosts = ['devpost.com', 'www.devpost.com'];
if (!allowedHosts.includes(check.host)) {
console.log('Invalid devpost link');
return promptAction();
}
Expand Down

0 comments on commit 3e72230

Please sign in to comment.