Skip to main content

regexFallbackRule()

regexFallbackRule<R extends RuleType<string, string, any, string, Record<string, any>>>(rule: R): R

Defined in: packages/core/src/utils/formatQuery/utils.ts:635

Converts a matches/doesNotMatch rule to contains/doesNotContain with the pattern as a literal value. Used by formats with no regular expression support. Other rules are returned as-is.

Type Parameters​

Type Parameter
R extends RuleType<string, string, any, string, Record<string, any>>

Parameters​

ParameterType
ruleR

Returns​

R


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.