Skip to content

Commit

Permalink
Merge pull request #49229 from jaydamani/48627-fix_search_with_emojis
Browse files Browse the repository at this point in the history
fix(search): search now works with special characters and emojis
  • Loading branch information
aldo-expensify authored Sep 16, 2024
2 parents 57d6880 + f0b3a2a commit 350b34d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/SearchUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ function buildAmountFilterQuery(filterValues: Partial<SearchAdvancedFiltersForm>
}

function sanitizeString(str: string) {
const regexp = /[<>,:= ]/g;
const regexp = /[^A-Za-z0-9_@./#&+\-\\';,"]/g;
if (regexp.test(str)) {
return `"${str}"`;
}
Expand Down

0 comments on commit 350b34d

Please sign in to comment.