SearchMatcherGuards.regex method
SearchMatcherGuards › regex
Unofficial
Checks the exact prototype of a regex matcher.Signature:
regex(matcher: SearchMatcher): matcher is SearchRegexMatcherParameters:
| Parameter | Type | Description |
|---|---|---|
| matcher | SearchMatcher | The node to inspect. |
Returns: matcher is SearchRegexMatcher — Whether the node has the current app's regex prototype.