Skip to main content

toRegExpSource()

toRegExpSource(pattern: string | RegExp): string

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

Returns the pattern string of a RegExp (its source) or the string itself.

Parameters​

ParameterType
patternstring | RegExp

Returns​

string


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.