Skip to content

Commit

Permalink
Allow 5-digit team numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
mcm001 committed Oct 25, 2024
1 parent 51df0f0 commit b3b1300
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions photon-client/src/components/settings/NetworkingCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ const resetTempSettingsStruct = () => {
const settingsValid = ref(true);
const isValidNetworkTablesIP = (v: string | undefined): boolean => {
// Check if it is a valid team number between 1-9999
const teamNumberRegex = /^[1-9][0-9]{0,3}$/;
// Check if it is a valid team number between 1-99999 (5 digits)
const teamNumberRegex = /^[1-9][0-9]{0,4}$/;
// Check if it is a team number longer than 5 digits
const badTeamNumberRegex = /^[0-9]{5,}$/;
const badTeamNumberRegex = /^[0-9]{6,}$/;
if (v === undefined) return false;
if (teamNumberRegex.test(v)) return true;
Expand Down

0 comments on commit b3b1300

Please sign in to comment.