Skip to content

Function: matchSubject()

ts
function matchSubject(pattern, subject): boolean;

Defined in: glide-mq/src/utils.ts:827

Match a dot-separated subject against a pattern.

  • * matches exactly one segment
  • > matches one or more trailing segments (must be the last token)
  • Literal tokens match exactly

Parameters

ParameterType
patternstring
subjectstring

Returns

boolean

Released under the Apache-2.0 License.