Browse Source

Merge pull request #551 from lgcareer/dev-1.1.0

update email regex
pull/2/head
lgcareer 6 years ago committed by GitHub
parent
commit
41a5febbf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      escheduler-common/src/main/java/cn/escheduler/common/Constants.java

2
escheduler-common/src/main/java/cn/escheduler/common/Constants.java

@ -337,7 +337,7 @@ public final class Constants {
/**
* email regex
*/
public static final Pattern REGEX_MAIL_NAME = Pattern.compile("^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)+$");
public static final Pattern REGEX_MAIL_NAME = Pattern.compile("^([a-z0-9A-Z]+[-|\\.]?)+[a-z0-9A-Z]@([a-z0-9A-Z]+(-[a-z0-9A-Z]+)?\\.)+[a-zA-Z]{2,}$");
/**
* read permission

Loading…
Cancel
Save