Skip to content

Commit

Permalink
FIX controllo numero conto per TABA con espressione regolare ^[0-9]{7}
Browse files Browse the repository at this point in the history
  • Loading branch information
mspasiano committed Nov 22, 2021
1 parent 4b00129 commit 2679089
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ public void validate(OggettoBulk parent) throws ValidationException {
}
} else if (Rif_modalita_pagamentoBulk.BANCA_ITALIA.equals(getTi_pagamento()) && (isTABA() || isRegolarizzazione())) {
// SE è BANCA_ITALIA
final String regex = "[0-9]{7}";
final String regex = "^[0-9]{7}";
final Pattern pattern = Pattern.compile(regex, Pattern.MULTILINE);
Optional.ofNullable(getNumero_conto())
.filter(s -> pattern.matcher(s).find())
Expand Down

0 comments on commit 2679089

Please sign in to comment.