correctif(champs.iban): 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:
parent
9bd6cea38d
commit
7e28c6ba63
1 changed files with 3 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue