Skip to content

Commit

Permalink
fix(works): Remove all double quotes in the search string
Browse files Browse the repository at this point in the history
  • Loading branch information
annelhote committed Jan 24, 2025
1 parent 3e47db8 commit e4ddfbc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions server/src/utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,10 @@ for (let i = 0; i < defaultDiacriticsRemovalMapLength; i += 1) {
// "what?" version ... http://jsperf.com/diacritics/12
// eslint-disable-next-line no-control-regex
const removeDiacritics = (str) => str.replace(/[^\u0000-\u007E]/g, (a) => diacriticsMap[a] || a)
.replace(/[,%().*:;]/g, ' ')
.replace(/-/g, ' ')
.toLowerCase()
.trim()
.replaceAll(/ +/g, ' ');
.replace(/[,%().*:;"-]/g, ' ')
.replaceAll(/ +/g, ' ')
.trim();

export {
chunkArray,
Expand Down

0 comments on commit e4ddfbc

Please sign in to comment.