MCPcopy Create free account
hub / github.com/cameri/nostream / isGeohashPrefixCriterion

Function isGeohashPrefixCriterion

src/utils/filter.ts:10–11  ·  view source on GitHub ↗
(key: string, criterion: string)

Source from the content-addressed store, hash-verified

8export const isGeohashTagQuery = (key: string): boolean => key === geohashTagQuery
9
10export const isGeohashPrefixCriterion = (key: string, criterion: string): boolean =>
11 isGeohashTagQuery(key) && criterion.endsWith('*')
12
13export const stripGeohashPrefixWildcard = (criterion: string): string => criterion.slice(0, -1)

Callers 2

Calls 1

isGeohashTagQueryFunction · 0.85

Tested by

no test coverage detected