From d194b1e921f5cdf864cc5d4202e2a1c6ffb5ab51 Mon Sep 17 00:00:00 2001 From: Max Hausch Date: Thu, 20 Oct 2022 10:52:28 +0200 Subject: [PATCH] fix(mail(js)): fix validation of email addresses This fixes a js error that was introduced by 67ccf748edcec8d495de35f431d7d0f3cf35fc6e If applied, this fix allows users to copy and paste multiple email addresses into the recipient fields, e.g., from a excel file. --- UI/WebServerResources/js/Common/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UI/WebServerResources/js/Common/utils.js b/UI/WebServerResources/js/Common/utils.js index 447c7213e..5b0b2b029 100644 --- a/UI/WebServerResources/js/Common/utils.js +++ b/UI/WebServerResources/js/Common/utils.js @@ -137,10 +137,10 @@ String.prototype.formatted = function() { }; String.prototype.isValidEmail = function(strict) { - var result = emailRE.test(this); + var result = String.emailRE.test(this); if (strict && result) { - result = emailRE.exec(this)[0] == this; + result = String.emailRE.exec(this)[0] == this; } return result;