Small fixes and improvements

This commit is contained in:
RainLoop Team 2018-07-10 00:05:02 +03:00
parent f5b92b8b65
commit 791f0ff6ad
9 changed files with 6100 additions and 6350 deletions

4
dev/External/ko.js vendored
View file

@ -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();