Skip to content

Commit

Permalink
Merge pull request #98 from abes-esr/develop
Browse files Browse the repository at this point in the history
FIX : regexp isbn
  • Loading branch information
SamuelQuetin authored Oct 9, 2024
2 parents 7cd95d3 + 0b2f3cf commit c2d247f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/fr/abes/sudoc/service/IsbnService.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public boolean checkFormat(String isbn) {
//ISBN 10 et 13
//avec ou sans tiret
//avec prise en compte du caractère de controle X en fin
return isbn != null && isbn.matches("^(?:ISBN(?:-1[03])?:?\\\\s*)?(?=[-0-9X\\\\s]{10,17}$)(?:97[89][- ]?)?([0-9]{1,5})[- ]?([0-9]+)[- ]?([0-9]+)[- ]?([0-9X])$");
return isbn != null && isbn.matches("^(?:ISBN(?:-1[03])?:?\\s*)?(?=[-0-9X\\s]{10,17}$)(?:97[89][- ]?)?([0-9]{1,5})[- ]?([0-9]+)[- ]?([0-9]+)[- ]?([0-9X])$");
}

@Override
Expand Down

0 comments on commit c2d247f

Please sign in to comment.