From 5c57943f928af535213ee17db7fea3e159b5349f Mon Sep 17 00:00:00 2001 From: Pekka Helenius Date: Thu, 17 Sep 2020 20:31:25 +0300 Subject: [PATCH] Allow ':' in book's name Signed-off-by: Pekka Helenius --- bookstore/src/main/java/com/fjordtek/bookstore/model/Book.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookstore/src/main/java/com/fjordtek/bookstore/model/Book.java b/bookstore/src/main/java/com/fjordtek/bookstore/model/Book.java index 8ab78c0..4388741 100644 --- a/bookstore/src/main/java/com/fjordtek/bookstore/model/Book.java +++ b/bookstore/src/main/java/com/fjordtek/bookstore/model/Book.java @@ -33,7 +33,7 @@ public class Book { private static final int strMin = 2; private static final int strMax = 100; // We format length check in Size annotation, not here - private static final String regexCommon = "^[a-zA-Z0-9\\-\\s]*$"; + private static final String regexCommon = "^[a-zA-Z0-9\\-:\\s]*$"; private static final int strIsbnFirstPartMin = 7; private static final int strIsbnFirstPartMax = 7;