From 7e28c6ba6359f1e73c6ce2f58bcd06e4588fab7b Mon Sep 17 00:00:00 2001 From: Martin Date: Mon, 17 Jul 2023 16:42:37 +0200 Subject: [PATCH] =?UTF-8?q?correctif(champs.iban):=20le=20copier/coller=20?= =?UTF-8?q?sur=20un=20champs=20iban=20avec=20le=20code=20pays=20en=20minus?= =?UTF-8?q?cule=20perdait=20les=20caract=C3=A8res=20alphab=C3=A9tiques=20e?= =?UTF-8?q?n=20debut=20d'IBAN?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/javascript/controllers/format_controller.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/javascript/controllers/format_controller.ts b/app/javascript/controllers/format_controller.ts index a6a9ad14c..aed58a6cf 100644 --- a/app/javascript/controllers/format_controller.ts +++ b/app/javascript/controllers/format_controller.ts @@ -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) {