Skip to content

Commit 4b95673

Browse files
committed
Remove idiocy. Do not return true.
1 parent a78b026 commit 4b95673

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

nr-common/utils.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@ export function isHexKey(key: string): boolean {
3232
}
3333

3434
export function isPlusCode(code: string) {
35-
return true;
36-
// todo: use OpenLocationCode.isValid instead
37-
// https://github.com/tspoke/typescript-open-location-code/blob/f44c7dd208fc65a903f4ab28381f0b4b59faac47/src/open-location-code.ts#L137
38-
3935
const re =
4036
/(^|\s)([23456789C][23456789CFGHJMPQRV][023456789CFGHJMPQRVWX]{6}\+[23456789CFGHJMPQRVWX]*)(\s|$)/i;
4137
const simpleTestResult = re.test(code);

0 commit comments

Comments
 (0)