1
0
Fork 0
mirror of synced 2024-10-04 03:54:37 +13:00

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

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