mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-25 04:36:46 +00:00
Fix searching for numbers with parens or dashes
Strip some punctuation from search queries // FREEBIE
This commit is contained in:
@@ -410,6 +410,7 @@
|
||||
search: function(query) {
|
||||
query = query.trim().toLowerCase();
|
||||
if (query.length > 0) {
|
||||
query = query.replace(/[-.\(\)]*/g,'');
|
||||
var lastCharCode = query.charCodeAt(query.length - 1);
|
||||
var nextChar = String.fromCharCode(lastCharCode + 1);
|
||||
var upper = query.slice(0, -1) + nextChar;
|
||||
|
||||
Reference in New Issue
Block a user