Skip to content

Connectum API Reference / @connectum/core / matchServicesPattern

Function: matchServicesPattern() โ€‹

matchServicesPattern(pattern, names): string[]

Defined in: packages/core/src/enabledServices.ts:31

Return the subset of names matching a glob pattern, where * matches any run of characters (including dots). E.g. "acme.*" matches "acme.v1.UsersService". Matched without a constructed RegExp (segment scan).

Parameters โ€‹

pattern โ€‹

string

names โ€‹

readonly string[]

Returns โ€‹

string[]