Commit a8b0aeae authored by Tristan Cavelier's avatar Tristan Cavelier

BACKSLASH fix not_string.replace in sanitzeQueryValue

parent 385bd0b1
...@@ -682,7 +682,10 @@ ...@@ -682,7 +682,10 @@
}; };
function sanitizeQueryValue(value) { function sanitizeQueryValue(value) {
return value.replace(/((?:\\\\)*)\\$/, "$1"); if (typeof value === "string") {
return value.replace(/((?:\\\\)*)\\$/, "$1");
}
return value;
} }
function objectToSearchText(query) { function objectToSearchText(query) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment