mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 20:49:20 +03:00
Small fixes and improvements
This commit is contained in:
parent
f5b92b8b65
commit
791f0ff6ad
9 changed files with 6100 additions and 6350 deletions
4
dev/External/ko.js
vendored
4
dev/External/ko.js
vendored
|
|
@ -1209,7 +1209,7 @@ ko.observable.fn.validateEmail = function() {
|
|||
this.hasError = ko.observable(false);
|
||||
|
||||
this.subscribe((value) => {
|
||||
this.hasError('' !== value && !(/^[^@\s]+@[^@\s]+$/.test(value)));
|
||||
this.hasError('' !== value && !((/^[^@\s]+@[^@\s]+$/).test(value)));
|
||||
});
|
||||
|
||||
this.valueHasMutated();
|
||||
|
|
@ -1221,7 +1221,7 @@ ko.observable.fn.validateSimpleEmail = function() {
|
|||
this.hasError = ko.observable(false);
|
||||
|
||||
this.subscribe((value) => {
|
||||
this.hasError('' !== value && !(/^.+@.+$/.test(value)));
|
||||
this.hasError('' !== value && !((/^.+@.+$/).test(value)));
|
||||
});
|
||||
|
||||
this.valueHasMutated();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue