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
| Parameter | Type |
|---|---|
pattern | string | 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.