Skip to content

SearchMatcherGuards.regex method

SearchMatcherGuards › regex

Unofficial

Checks the exact prototype of a regex matcher.

Signature:

regex(matcher: SearchMatcher): matcher is SearchRegexMatcher

Parameters:

ParameterTypeDescription
matcherSearchMatcherThe node to inspect.

Returns: matcher is SearchRegexMatcher — Whether the node has the current app's regex prototype.