Skip to content

Commit

Permalink
#20: fix minor sonarlint regexp issue
Browse files Browse the repository at this point in the history
  • Loading branch information
saneci committed Feb 14, 2024
1 parent a4cf87f commit 7951835
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/ru/saneci/booklibrary/domain/Book.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class Book {
@Column(name = "id")
private Long id;

@Pattern(regexp = "([А-Я]|[A-Z]).{1,100}",
@Pattern(regexp = "([А-ЯA-Z]).{1,100}",
message = "Название книги должно начинаться с заглавной буквы и содержать от 2 до 100 символов")
@Column(name = "title")
private String title;
Expand Down

0 comments on commit 7951835

Please sign in to comment.