Regex: Fixes Permalink action on timeline (#303)

This commit is contained in:
ismailgulek
2022-11-09 14:20:19 +03:00
committed by GitHub
parent cbb69624b0
commit 6c6c188f73
5 changed files with 71 additions and 11 deletions
@@ -184,7 +184,7 @@ final class LoginCoordinator: Coordinator, Presentable {
/// Parses the specified username and looks up the homeserver when a Matrix ID is entered.
private func parseUsername(_ username: String) {
guard username.isMatrixUserID else { return }
guard MatrixEntityRegex.isMatrixUserIdentifier(username) else { return }
let homeserverDomain = String(username.split(separator: ":")[1])