Skip to content

Commit

Permalink
HV-2057 Adjust constraint message regex check
Browse files Browse the repository at this point in the history
  • Loading branch information
marko-bekhta committed Oct 18, 2024
1 parent 054aca8 commit 1ed5cb2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*/
public abstract class AnnotationMessageCheck extends AnnotationParametersAbstractCheck {

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

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

0 comments on commit 1ed5cb2

Please sign in to comment.