Skip to content

Commit

Permalink
Address additional feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
ketan committed Sep 3, 2024
1 parent 05ffb4b commit 2492683
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/fxc-front/src/app/pages/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ export class SettingsPage extends LitElement {
<a href="https://www.glidernet.org/" target="_blank">OGN (Open Glider Network)</a>
</li>
<li><a href="https://live.xcontest.org/" target="_blank">XCTrack (XContest live)</a></li>
<li><a href="https://bircom.in/" target="_blank">Bircom</a></li>
<li><a href="https://bircom.in/" target="_blank">Bircom (Meshtastic)</a></li>
</ul>
<p>
<a href="mailto:[email protected]?subject=flyXC%20registration%20error" target="_blank"> Contact us by email </a>
Expand Down
2 changes: 1 addition & 1 deletion libs/common/src/lib/live-track.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export const trackerDisplayNames: Readonly<Record<TrackerNames, string>> = {
ogn: 'OGN',
zoleo: 'zoleo',
xcontest: 'XContest',
meshbir: 'Meshtastic',
meshbir: 'Bircom',
};

export const trackerIdByName: Record<TrackerNames, number> = {} as any;
Expand Down
4 changes: 2 additions & 2 deletions libs/common/src/lib/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export const trackerValidators: Readonly<Record<TrackerNames, AccountSyncValidat
ogn: [new AccountSyncValidator('This OGN ID is invalid', validateOgnAccount)],
zoleo: [],
xcontest: [new AccountSyncValidator('This XContest UUID is invalid', validateXContestAccount)],
meshbir: [new AccountSyncValidator('This Bircom ID is invalid', validateMeshBirAccount)],
meshbir: [new AccountSyncValidator('This Bircom ID is invalid', validateBircomAccount)],
};

// Validates a Spot Id.
Expand Down Expand Up @@ -227,7 +227,7 @@ export function validateXContestAccount(id: string): string | false {
}

// Validates a Meshtastic ID.
export function validateMeshBirAccount(id: string): string | false {
export function validateBircomAccount(id: string): string | false {
id = id.trim();
return /^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/i.test(id) ? id.toUpperCase() : false;
}

0 comments on commit 2492683

Please sign in to comment.