Skip to content

Commit

Permalink
Allow characters in team name
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewCalligaro committed Nov 1, 2020
1 parent e86ecbc commit 206efba
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/html_extra/tool_setup.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@

function parseTeam(role, input) {
const REPO_REGEX = /^https:\/\/github\.com\/mitllracecar\/racecar-.*\.git$/;
const TEAM_REGEX = /^[0-9a-z]+$/;

let teamName;
let repoName;
Expand Down Expand Up @@ -80,8 +79,8 @@
repoName = `racecar-${teamName}`
}

if (!TEAM_REGEX.test(teamName)) {
pTeamError.innerHTML = `Your team name must be alphanumeric and at least one character long, but was [${teamName}]`
if (teamName.contains("/")) {
pTeamError.innerHTML = `Your team name cannot contain a slash (/), but was [${teamName}]`
return null;
}

Expand Down

0 comments on commit 206efba

Please sign in to comment.