Skip to content

Commit 5b1d857

Browse files
Revert "fix for GRAILS-6249"
This reverts commit 83bf11a.
1 parent 9162b14 commit 5b1d857

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/java/org/codehaus/groovy/grails/validation/routines/DomainValidator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public class DomainValidator implements Serializable {
6363

6464
private static final long serialVersionUID = -7709130257134339371L;
6565
// 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})*";
66+
private static final String DOMAIN_LABEL_REGEX = "\\p{Alnum}(?:[\\p{Alnum}-]*\\p{Alnum})*";
6767
private static final String TOP_LABEL_REGEX = "\\p{Alpha}{2,}";
6868
private static final String DOMAIN_NAME_REGEX =
6969
"^(?:" + DOMAIN_LABEL_REGEX + "\\.)+" + "(" + TOP_LABEL_REGEX + ")$";

0 commit comments

Comments
 (0)