Skip to content

Commit

Permalink
MODLD-599: Fix LCCN patterns (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
askhat-abishev authored Nov 26, 2024
1 parent f1ed744 commit 440424c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ public class LccnPatternValidator implements ConstraintValidator<LccnPatternCons

public static final String CODE = "invalidLccnSubfieldValue";

private static final Pattern LCCN_STRUCTURE_A_PATTERN = Pattern.compile("( {3}|[a-z][ |a-z]{2})\\d{8} ");
private static final Pattern LCCN_STRUCTURE_B_PATTERN = Pattern.compile("( {2}|[a-z][ |a-z])\\d{10}");
private static final Pattern LCCN_STRUCTURE_A_PATTERN = Pattern.compile("( {3}|[a-z][ a-z]{2})\\d{8} ");
private static final Pattern LCCN_STRUCTURE_B_PATTERN = Pattern.compile("( {2}|[a-z][ a-z])\\d{10}");

private final SpecProvider specProvider;

Expand Down

0 comments on commit 440424c

Please sign in to comment.