MCPcopy
hub / github.com/mongodb/node-mongodb-native / isHostMatch

Function isHostMatch

src/utils.ts:1237–1239  ·  view source on GitHub ↗
(match: RegExp, host?: string)

Source from the content-addressed store, hash-verified

1235
1236/** @internal */
1237export function isHostMatch(match: RegExp, host?: string): boolean {
1238 return host && match.test(host.toLowerCase()) ? true : false;
1239}
1240
1241export function promiseWithResolvers<T>(): {
1242 promise: Promise<T>;

Callers 1

Calls 1

testMethod · 0.80

Tested by

no test coverage detected