Skip to content

Commit

Permalink
For some reason VSCode did not rename all references to this method -
Browse files Browse the repository at this point in the history
reverting
  • Loading branch information
ketan committed Sep 3, 2024
1 parent 2492683 commit b5e121c
Showing 1 changed file with 2 additions and 2 deletions.
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', validateBircomAccount)],
meshbir: [new AccountSyncValidator('This Bircom ID is invalid', validateMeshBirAccount)],
};

// 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 validateBircomAccount(id: string): string | false {
export function validateMeshBirAccount(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 b5e121c

Please sign in to comment.