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
…) (#92507)
  • Loading branch information
alvarezmelissa87 authored Feb 23, 2021
1 parent c21b44d commit 1dfb7d9
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 1dfb7d9

Please sign in to comment.