isRegexRuleInvalid()
isRegexRuleInvalid(
rule:RuleType):boolean
Defined in: packages/core/src/utils/formatQuery/utils.ts:650
Determines whether a rule is a matches/doesNotMatch rule with an invalid pattern.
Rules with a valueSource other than "value" are never considered invalid.
Parameters
| Parameter | Type |
|---|---|
rule | RuleType |
Returns
boolean
caution
API documentation is generated from the latest commit on the main branch. It may be somewhat inconsistent with official releases of React Query Builder.