fix: Fixing incomplete string escaping. (#29772)

This commit is contained in:
Evan Rusackas 2024-07-30 16:36:26 -06:00 committed by GitHub
parent d21d7591c0
commit 2bce20f790
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -316,7 +316,7 @@ export const getSimpleSQLExpression = (subject, operator, comparator) => {
.map(val => optionLabel(val))
.map(
val =>
`${quote}${isString ? String(val).replace("'", "''") : val}${quote}`,
`${quote}${isString ? String(val).replace(/'/g, "''") : val}${quote}`,
);
if (comparatorArray.length > 0) {
expression += ` ${prefix}${formattedComparators.join(', ')}${suffix}`;