gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] branch master updated: iban country code should be a


From: gnunet
Subject: [taler-wallet-core] branch master updated: iban country code should be always uppercased
Date: Fri, 29 Sep 2023 19:46:48 +0200

This is an automated email from the git hooks/post-receive script.

sebasjm pushed a commit to branch master
in repository wallet-core.

The following commit(s) were added to refs/heads/master by this push:
     new 779ddae8b iban country code should be always uppercased
779ddae8b is described below

commit 779ddae8b8c0e1b544ee370ac4d4b366333e7197
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Fri Sep 29 14:46:13 2023 -0300

    iban country code should be always uppercased
---
 packages/taler-util/src/payto.ts | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/packages/taler-util/src/payto.ts b/packages/taler-util/src/payto.ts
index 60c4ba838..85870afcd 100644
--- a/packages/taler-util/src/payto.ts
+++ b/packages/taler-util/src/payto.ts
@@ -89,12 +89,13 @@ export function buildPayto(
       return result;
     }
     case "iban": {
+      const uppercased = first.toUpperCase()
       const result: PaytoUriIBAN = {
         isKnown: true,
         targetType: "iban",
-        iban: first,
+        iban: uppercased,
         params: {},
-        targetPath: !second ? first : `${second}/${first}`,
+        targetPath: !second ? uppercased : `${second}/${uppercased}`,
       };
       return result;
     }
@@ -200,13 +201,13 @@ export function parsePaytoUri(s: string): PaytoUri | 
undefined {
     let iban: string | undefined = undefined;
     let bic: string | undefined = undefined;
     if (parts.length === 1) {
-      iban = parts[0];
+      iban = parts[0].toUpperCase();
     }
     if (parts.length === 2) {
       bic = parts[0];
-      iban = parts[1];
+      iban = parts[1].toUpperCase();
     } else {
-      iban = targetPath;
+      iban = targetPath.toUpperCase();
     }
     return {
       isKnown: true,

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]