From 84acd3f45561e12d13b3eb2d35d64b2b45eec408 Mon Sep 17 00:00:00 2001 From: Pekka Helenius Date: Sat, 10 Oct 2020 11:41:46 +0300 Subject: [PATCH] Author's name can't have numbers Signed-off-by: Pekka Helenius --- .../src/main/java/com/fjordtek/bookstore/model/book/Author.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookstore/src/main/java/com/fjordtek/bookstore/model/book/Author.java b/bookstore/src/main/java/com/fjordtek/bookstore/model/book/Author.java index ed8873a..554914c 100644 --- a/bookstore/src/main/java/com/fjordtek/bookstore/model/book/Author.java +++ b/bookstore/src/main/java/com/fjordtek/bookstore/model/book/Author.java @@ -37,7 +37,7 @@ public class Author { private static final int strMax = 100; // We format length check in Size annotations, not here - private static final String regexCommon = "^[a-zA-Z0-9\\-:\\s]*$"; + private static final String regexCommon = "^[a-zA-Z\\-:\\s]*$"; //////////////////// // Primary key value in database