Skip to content

Commit

Permalink
fix escapeDoubleQuotes regex to ensure quotes escaped correctly (#92471)
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarezmelissa87 authored Feb 23, 2021
1 parent 8fac02f commit 4f8cd83
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ export function escapeParens(string) {
}

export function escapeDoubleQuotes(string) {
return string.replace(/\"/g, '\\$&');
return string.replace(/[\\"]/g, '\\$&');
}

export function getQueryPattern(fieldName, fieldValue) {
Expand Down

0 comments on commit 4f8cd83

Please sign in to comment.