Skip to content

Commit 1ed5cb2

Browse files
committed
HV-2057 Adjust constraint message regex check
1 parent 054aca8 commit 1ed5cb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

annotation-processor/src/main/java/org/hibernate/validator/ap/internal/checks/annotationparameters/AnnotationMessageCheck.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
*/
2222
public abstract class AnnotationMessageCheck extends AnnotationParametersAbstractCheck {
2323

24-
private static final String WORDS_SEPARATED_WITH_DOTS = "(\\w)+(\\.(\\w)+)*";
24+
private static final String WORDS_SEPARATED_WITH_DOTS = "\\w+(?:\\.\\w+)*+";
2525

2626
// for dots and no {} around, or one of the {} is missing
2727
private static final Pattern MESSAGE_PATTERN = Pattern.compile( WORDS_SEPARATED_WITH_DOTS + "|\\{" + WORDS_SEPARATED_WITH_DOTS + "|" + WORDS_SEPARATED_WITH_DOTS + "\\}" );

0 commit comments

Comments
 (0)