Browse Source

Allow ':' in book's name

Signed-off-by: Pekka Helenius <fincer89@hotmail.com>
v0.0.1-alpha
Pekka Helenius 4 years ago
parent
commit
5c57943f92
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      bookstore/src/main/java/com/fjordtek/bookstore/model/Book.java

+ 1
- 1
bookstore/src/main/java/com/fjordtek/bookstore/model/Book.java View File

@ -33,7 +33,7 @@ public class Book {
private static final int strMin = 2; private static final int strMin = 2;
private static final int strMax = 100; private static final int strMax = 100;
// We format length check in Size annotation, not here // 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 strIsbnFirstPartMin = 7;
private static final int strIsbnFirstPartMax = 7; private static final int strIsbnFirstPartMax = 7;


Loading…
Cancel
Save