This commit is contained in:
Daniel Arantes Loverde
2026-03-05 10:10:27 -03:00
parent a8e3631177
commit 1407f0b9de
27 changed files with 1493 additions and 84 deletions

View File

@@ -139,10 +139,7 @@ final class CachedRemoteImageLoader: ObservableObject {
}
private static func normalizeImageSource(_ value: String?) -> String? {
guard var normalized = value?.trimmingCharacters(in: .whitespacesAndNewlines),
normalized.isEmpty == false else { return nil }
normalized = normalized.replacingOccurrences(of: "\\/", with: "/")
return normalized
ImageSourceResolver.resolve(value)
}
private static func dataURLCacheKey(_ source: String) -> String {