Contains Query by default allow Regex, how I can disable that , as when I make request with title_contains = "(" return error

I found the solution, I just created a escape function for Regex characters :
function escapeRegex(string) {
return string.replace(/[-/\^$*+?.()|[]{}]/g, ‘\$&’);
}

and applied it on the string that comes after contains=
so all Regex characters will be escaped so it will be treated like normal string

1 Like