We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9162b14 commit 5b1d857Copy full SHA for 5b1d857
src/java/org/codehaus/groovy/grails/validation/routines/DomainValidator.java
@@ -63,7 +63,7 @@ public class DomainValidator implements Serializable {
63
64
private static final long serialVersionUID = -7709130257134339371L;
65
// Regular expression strings for hostnames (derived from RFC2396 and RFC 1123)
66
- private static final String DOMAIN_LABEL_REGEX = "\\p{Alnum}(?>[\\p{Alnum}-]*\\p{Alnum})*";
+ private static final String DOMAIN_LABEL_REGEX = "\\p{Alnum}(?:[\\p{Alnum}-]*\\p{Alnum})*";
67
private static final String TOP_LABEL_REGEX = "\\p{Alpha}{2,}";
68
private static final String DOMAIN_NAME_REGEX =
69
"^(?:" + DOMAIN_LABEL_REGEX + "\\.)+" + "(" + TOP_LABEL_REGEX + ")$";
0 commit comments