aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2021-06-09 11:06:12 +0200
committerMax Kostikov <max@kostikov.co>2021-06-09 11:06:12 +0200
commit17fdeb9e1fa24178f4450f4f71e83768e876628e (patch)
tree5a84beabc7d06028cc1e26411b2c357cee363a71 /view
parente41858f57ccf9a0065fa43bb879b72ef772e43d3 (diff)
downloadvolse-hubzilla-17fdeb9e1fa24178f4450f4f71e83768e876628e.tar.gz
volse-hubzilla-17fdeb9e1fa24178f4450f4f71e83768e876628e.tar.bz2
volse-hubzilla-17fdeb9e1fa24178f4450f4f71e83768e876628e.zip
Fix email local part validation
Diffstat (limited to 'view')
-rw-r--r--view/js/mod_register.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/view/js/mod_register.js b/view/js/mod_register.js
index 1fc5ad2fa..4f00ededb 100644
--- a/view/js/mod_register.js
+++ b/view/js/mod_register.js
@@ -3,7 +3,7 @@ $(document).ready(function() {
typeof(window.tao) == 'undefined' ? window.tao = {} : '';
tao.zar = { vsn: '2.0.0', form: {}, msg: {} };
tao.zar.patano = /^d[0-9]{5,10}$/;
- tao.zar.patema = /^[a-z0-9.-]{1,64}@[a-z0-9.-]{2,32}\.[a-z]{2,12}$/;
+ tao.zar.patema = /^([^@\s]{1,64})@[a-z0-9.-]{2,32}\.[a-z]{2,12}$/;
$('.register_date').each( function () {
var date = new Date($(this).data('utc'));