Add escape for forward slash

This commit is contained in:
Mel O'Hagan 2023-04-20 21:57:48 +01:00
parent 66a573dcc9
commit 458b23fc1b
1 changed files with 1 additions and 1 deletions

View File

@ -243,7 +243,7 @@ export class QueryBuilder<T> {
}
// Escape characters
if (!this.#noEscaping && escape && originalType === "string") {
value = `${value}`.replace(/[ #+\-&|!(){}\]^"~*?:\\]/g, "\\$&")
value = `${value}`.replace(/[ \/#+\-&|!(){}\]^"~*?:\\]/g, "\\$&")
}
// Wrap in quotes