[pve-devel] [PATCH pve-manager] Allow email adresses with a top level domain of up to 63 characters

Dietmar Maurer dietmar at proxmox.com
Thu Sep 17 12:55:44 CEST 2015



On 09/16/2015 05:08 PM, Emmanuel Kasper wrote:
>   // we dont want that a displayfield set the form dirty flag!
> diff --git a/www/manager/Utils.js b/www/manager/Utils.js
> index 0e2e8a2..1b6e063 100644
> --- a/www/manager/Utils.js
> +++ b/www/manager/Utils.js
> @@ -48,6 +48,9 @@ var IP6_bracket_match = new RegExp("^\\[(" + IPV6_REGEXP + ")\\]");
>   
>   var IP64_match = new RegExp("^(?:" + IPV6_REGEXP + "|" + IPV4_REGEXP + ")$");
>   
> +// workaround for https://www.sencha.com/forum/showthread.php?302150
> +var pveMailAddress = /^(\w+)([\-+.][\w]+)*@(\w[\-\w]*\.){1,5}([A-Za-z]){2,63}$/;
>

Why do we define that here? It is only used inside Toolkit.js?




More information about the pve-devel mailing list