taler-ios

iOS apps for GNU Taler (wallet)
Log | Files | Refs | README | LICENSE

commit 1892434eeda41357663b3a01b67cb6067e99fcc9
parent d3ad523328aaede2784f314751520cfd66e76291
Author: Marc Stibane <marc@taler.net>
Date:   Mon,  3 Aug 2026 16:07:36 +0200

trim whitespacesAndNewlines

Diffstat:
MTalerWallet1/Helper/TalerStrings.swift | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/TalerWallet1/Helper/TalerStrings.swift b/TalerWallet1/Helper/TalerStrings.swift @@ -60,7 +60,7 @@ extension String { } public var toURL: URL? { - if let someURL = URL(string: self) { + if let someURL = URL(string: self.trimmingCharacters(in: .whitespacesAndNewlines)) { return someURL } if let encodedString = self.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed) {