Remove backslash from search queries
Co-authored-by: Lee Randy <randy.lee@metronom.com> Co-authored-by: Evan Hahn <69474926+EvanHahn-Signal@users.noreply.github.com> See [#5053][0]. [0]: https://github.com/signalapp/Signal-Desktop/pull/5053
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
export function cleanSearchTerm(searchTerm: string): string {
|
||||
const lowercase = searchTerm.toLowerCase();
|
||||
const withoutSpecialCharacters = lowercase.replace(
|
||||
/([!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~])/g,
|
||||
/([-!"#$%&'()*+,./\\:;<=>?@[\]^_`{|}~])/g,
|
||||
' '
|
||||
);
|
||||
const whiteSpaceNormalized = withoutSpecialCharacters.replace(/\s+/g, ' ');
|
||||
|
Reference in New Issue
Block a user