Merge pull request #9321 from mfo/US/iban-with-lowercase-country

correctif(champs.iban): ETQ usager, le copier/coller sur un champs iban avec le code pays en minuscule perdait les caractères alphabétiques en debut d'IBAN
This commit is contained in:
mfo 2023-07-18 07:43:03 +00:00 committed by GitHub
commit 95578287c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,9 +30,10 @@ export class FormatController extends ApplicationController {
private formatIBAN(value: string) {
return value
.replace(/[^\dA-Z]/g, '')
.replace(/[^\dA-Z]/gi, '')
.replace(/(.{4})/g, '$1 ')
.trim();
.trim()
.toUpperCase();
}
private formatInteger(value: string) {