From 85ebdefedef0d51aee25357293d5f92a839cfaa0 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Sat, 18 Oct 2025 10:16:35 -0700 Subject: [PATCH] Use English locale when checking lower-cased URL schemes. --- Modules/RSWeb/Sources/RSWeb/URL+RSWeb.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/RSWeb/Sources/RSWeb/URL+RSWeb.swift b/Modules/RSWeb/Sources/RSWeb/URL+RSWeb.swift index 1225a13e6..1668ea3b4 100755 --- a/Modules/RSWeb/Sources/RSWeb/URL+RSWeb.swift +++ b/Modules/RSWeb/Sources/RSWeb/URL+RSWeb.swift @@ -18,11 +18,11 @@ private struct URLConstants { public extension URL { func isHTTPSURL() -> Bool { - return self.scheme?.lowercased() == URLConstants.schemeHTTPS + return self.scheme?.lowercased(with: localeForLowercasing) == URLConstants.schemeHTTPS } func isHTTPURL() -> Bool { - return self.scheme?.lowercased() == URLConstants.schemeHTTP + return self.scheme?.lowercased(with: localeForLowercasing) == URLConstants.schemeHTTP } func isHTTPOrHTTPSURL() -> Bool {