gnunet-svn
[Top][All Lists]
Advanced

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

[taler-taler-ios] 68/69: lowercased()


From: gnunet
Subject: [taler-taler-ios] 68/69: lowercased()
Date: Fri, 19 Jan 2024 09:02:41 +0100

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

marc-stibane pushed a commit to branch master
in repository taler-ios.

commit 90aa5ad3d7ddecab9ed69eb8f962a35ea8cf83d5
Author: Marc Stibane <marc@taler.net>
AuthorDate: Fri Jan 19 08:55:11 2024 +0100

    lowercased()
---
 TalerWallet1/Controllers/Controller.swift | 4 ++--
 TalerWallet1/Views/Sheets/QRSheet.swift   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/TalerWallet1/Controllers/Controller.swift 
b/TalerWallet1/Controllers/Controller.swift
index 6d122da..78a3686 100644
--- a/TalerWallet1/Controllers/Controller.swift
+++ b/TalerWallet1/Controllers/Controller.swift
@@ -166,7 +166,7 @@ extension Controller {
         symLog.log(url)
         guard let scheme = url.scheme else {return UrlCommand.unknown}
         var uncrypted = false
-        switch scheme {
+        switch scheme.lowercased() {
             case "taler+http":
                 uncrypted = true
                 fallthrough
@@ -196,7 +196,7 @@ extension Controller {
             symLog.log("uncrypted: taler://\(command)")
             // TODO: uncrypted
         }
-        switch command {
+        switch command.lowercased() {
             case "withdraw":
                 return .withdraw
             case "withdraw-exchange":
diff --git a/TalerWallet1/Views/Sheets/QRSheet.swift 
b/TalerWallet1/Views/Sheets/QRSheet.swift
index 17cf9f2..33aab47 100644
--- a/TalerWallet1/Views/Sheets/QRSheet.swift
+++ b/TalerWallet1/Views/Sheets/QRSheet.swift
@@ -19,7 +19,7 @@ struct QRSheet: View {
 
                 if let scannedURL = URL(string: scannedCode!) {
                     let scheme = scannedURL.scheme
-                    if scheme == "taler" {
+                    if scheme?.lowercased() == "taler" {
                         URLSheet(stack: stack.push(), urlToOpen: scannedURL)
                     } else {
 //                        let _ = print(scannedURL)       // TODO: logging

-- 
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]