dolphinscheduler icon indicating copy to clipboard operation
dolphinscheduler copied to clipboard

Mailbox regular match(邮箱正则匹配)

Open thisnew opened this issue 7 years ago • 1 comments

esceduler-ui/src/js/conf/home/pages/projects/pages/definition/pages/list/_source/util.js

In the isMail method

Regular missing match "-" symbol   Such as [email protected] The source code is let regEmail = /^([a-zA-Z0-9]+[|_|.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9 ]+[|_|.]?)*[a-zA-Z0-9]+.[a-zA-Z]{2,3}$/ // eslint-disable-line

Should be changed to let regEmail = /^([a-zA-Z0-9]+[|-|_|.]?)*[a-zA-Z0-9]+@([a-zA -Z0-9]+[|_|.]?)*[a-zA-Z0-9]+.[a-zA-Z]{2,3}$/ // eslint-disable- line


escheduler-ui/src/js/conf/home/pages/projects/pages/definition/pages/list/_source/util.js

isMail方法中

正则 缺少匹配 “-” 符号 如 [email protected] 源码为 let regEmail = /^([a-zA-Z0-9]+[|_|.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[|_|.]?)*[a-zA-Z0-9]+.[a-zA-Z]{2,3}$/ // eslint-disable-line

应改为 let regEmail = /^([a-zA-Z0-9]+[|-|_|.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[|_|.]?)*[a-zA-Z0-9]+.[a-zA-Z]{2,3}$/ // eslint-disable-line

thisnew avatar May 27 '19 10:05 thisnew

very good!

could you submit a pull request ? thx! please refer :https://github.com/analysys/EasyScheduler/wiki/EasyScheduler%E6%8F%90%E4%BA%A4%E4%BB%A3%E7%A0%81%E6%B5%81%E7%A8%8B

davidzollo avatar May 28 '19 03:05 davidzollo