getLikeWildcards()
getLikeWildcards(
operatorLC:string): [string,string]
Defined in: packages/core/src/utils/formatQuery/utils.ts:74
Returns the [prefix, suffix] LIKE wildcards for a string-match operator (e.g. contains
→ ['%', '%'], beginsWith → ['', '%'], endsWith → ['%', '']). Unknown operators
yield ['', ''].
Parameters
| Parameter | Type |
|---|---|
operatorLC | string |
Returns
[string, 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.