Skip to content

Commit

Permalink
Remove idiocy. Do not return true.
Browse files Browse the repository at this point in the history
  • Loading branch information
chmac committed Nov 25, 2024
1 parent a78b026 commit 4b95673
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions nr-common/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ export function isHexKey(key: string): boolean {
}

export function isPlusCode(code: string) {
return true;
// todo: use OpenLocationCode.isValid instead
// https://github.com/tspoke/typescript-open-location-code/blob/f44c7dd208fc65a903f4ab28381f0b4b59faac47/src/open-location-code.ts#L137

const re =
/(^|\s)([23456789C][23456789CFGHJMPQRV][023456789CFGHJMPQRVWX]{6}\+[23456789CFGHJMPQRVWX]*)(\s|$)/i;
const simpleTestResult = re.test(code);
Expand Down

0 comments on commit 4b95673

Please sign in to comment.