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

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}`;