Various improvements

This commit is contained in:
Ilya Laktyushin
2022-05-18 18:17:32 +04:00
parent f6190e347d
commit bb0d62f42e
50 changed files with 1850 additions and 1066 deletions

View File

@@ -242,6 +242,9 @@ public func parseInternalUrl(query: String) -> ParsedInternalUrl? {
} else {
return .join(String(component.dropFirst()))
}
} else if pathComponents[0].hasPrefix("$") || pathComponents[0].hasPrefix("%24") {
let component = pathComponents[0].replacingOccurrences(of: "%24", with: "$")
return .invoice(component)
}
return .peerName(peerName, nil)
} else if pathComponents.count == 2 || pathComponents.count == 3 {