From 3af9131afe222c54234c5317900c83dc8ef92565 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Sat, 28 Jan 2023 15:50:42 -0800 Subject: [PATCH] autocomplete: add space after replacing occurances This is more intuitive --- damus/Views/Posting/UserSearch.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/damus/Views/Posting/UserSearch.swift b/damus/Views/Posting/UserSearch.swift index cf7cc31..b839bd8 100644 --- a/damus/Views/Posting/UserSearch.swift +++ b/damus/Views/Posting/UserSearch.swift @@ -39,7 +39,7 @@ struct UserSearch: View { guard let pk = bech32_pubkey(user.pubkey) else { return } - post = post.replacingOccurrences(of: "@"+search, with: "@"+pk) + post = post.replacingOccurrences(of: "@"+search, with: "@"+pk+" ") } } }