From ecedcb685242414b0b2c8adae94fcac545b379eb Mon Sep 17 00:00:00 2001 From: Alan Date: Tue, 21 Nov 2023 14:48:37 +0800 Subject: [PATCH] allow quotes in email name part --- Roo/form/VTypes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Roo/form/VTypes.js b/Roo/form/VTypes.js index 37021c736f..36bf05fa09 100644 --- a/Roo/form/VTypes.js +++ b/Roo/form/VTypes.js @@ -17,7 +17,7 @@ Roo.form.VTypes = function(){ // closure these in so they are only created once. var alpha = /^[a-zA-Z_]+$/; var alphanum = /^[a-zA-Z0-9_]+$/; - var email = /^([\w-]+)(\.[\w-]+)*@([\w-]+\.){1,5}([A-Za-z]){2,24}$/; + var email = /^([\w'-]+)(\.[\w'-]+)*@([\w-]+\.){1,5}([A-Za-z]){2,24}$/; var url = /^(((https?)|(ftp)):\/\/([\-\w]+\.)+\w{2,3}(\/[%\-\w]+(\.\w{2,})?)*(([\w\-\.\?\\\/+@&#;`~=%!]*)(\.\w{2,})?)*\/?)/i; var urlWeb = /^((https?):\/\/([\-\w]+\.)+\w{2,3}(\/[%\-\w]+(\.\w{2,})?)*(([\w\-\.\?\\\/+@&#;`~=%!]*)(\.\w{2,})?)*\/?)/i; -- 2.39.2