fix(web(js)): improve validation of email addresses

Overwrite the AngularJS validation and transformation of email inputs in
order to support umlauts and eszett.
This commit is contained in:
Francis Lachapelle
2022-07-28 10:43:49 -04:00
parent 5e6ad77d4c
commit 67ccf748ed
9 changed files with 32 additions and 22 deletions

View File

@@ -11,16 +11,17 @@
function CardController($scope, $timeout, $window, $mdDialog, sgSettings, AddressBook, Card, Dialog, sgHotkeys, focus, $state, $stateParams, stateCard) {
var vm = this, hotkeys = [];
vm.card = stateCard;
this.card = stateCard;
vm.currentFolder = AddressBook.selectedFolder;
vm.allEmailTypes = Card.$EMAIL_TYPES;
vm.allTelTypes = Card.$TEL_TYPES;
vm.allUrlTypes = Card.$URL_TYPES;
vm.allAddressTypes = Card.$ADDRESS_TYPES;
vm.categories = {};
vm.userFilterResults = [];
vm.showRawSource = false;
this.currentFolder = AddressBook.selectedFolder;
this.allEmailTypes = Card.$EMAIL_TYPES;
this.allTelTypes = Card.$TEL_TYPES;
this.allUrlTypes = Card.$URL_TYPES;
this.allAddressTypes = Card.$ADDRESS_TYPES;
this.categories = {};
this.userFilterResults = [];
this.showRawSource = false;
this.emailRE = String.emailRE;
_registerHotkeys(hotkeys);