mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-08 13:27:15 +00:00
(js) Save addressbook search string
This allow to show the email address that matches the search string (if it does)
This commit is contained in:
1 parent
d9184d2363
commit
494e2be680
2 files changed
+3
-1
No files matched your search
@@ -235,7 +235,7 @@
|
||||
Card.prototype.$preferredEmail = function(partial) {
|
||||
var email, re;
|
||||
if (partial) {
|
||||
re = new RegExp(partial);
|
||||
re = new RegExp(partial, 'i');
|
||||
email = _.find(this.emails, function(o) {
|
||||
return re.test(o.value);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user