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:
commit
95578287c2
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