aboutsummaryrefslogtreecommitdiff
path: root/Hotline/macOS/ChatView.swift
diff options
context:
space:
mode:
authorDustin Mierau <dustin@mierau.me>2024-05-05 19:17:39 -0700
committerDustin Mierau <dustin@mierau.me>2024-05-05 19:17:39 -0700
commit3feb709522b38f1aa5ddedc5e1aee28597375aab (patch)
tree9df2ad849703004901261c53bcffad318b876ad4 /Hotline/macOS/ChatView.swift
parent4da73c630183e482e4ab2accef97ad54c6741bf4 (diff)
Write better URL regular expressions for our needs.
Diffstat (limited to 'Hotline/macOS/ChatView.swift')
-rw-r--r--Hotline/macOS/ChatView.swift6
1 files changed, 3 insertions, 3 deletions
diff --git a/Hotline/macOS/ChatView.swift b/Hotline/macOS/ChatView.swift
index 5bd626f..98fb852 100644
--- a/Hotline/macOS/ChatView.swift
+++ b/Hotline/macOS/ChatView.swift
@@ -47,7 +47,7 @@ struct ChatView: View {
ScrollView(.vertical) {
HStack {
Spacer()
- Text(msg.text.convertToAttributedStringWithLinks(relaxed: false))
+ Text(msg.text.convertToAttributedStringWithLinks())
.font(.system(size: 12))
.fontDesign(.monospaced)
.textSelection(.enabled)
@@ -122,7 +122,7 @@ struct ChatView: View {
// }
// }
// else {
- Text(LocalizedStringKey("**\(username):** \(msg.text)".convertLinksToMarkdown()))
+ Text(LocalizedStringKey("**\(username):** \(msg.text)".convertingLinksToMarkdown()))
.lineSpacing(4)
.multilineTextAlignment(.leading)
.textSelection(.enabled)
@@ -130,7 +130,7 @@ struct ChatView: View {
// }
}
else {
- Text(LocalizedStringKey(msg.text.convertLinksToMarkdown()))
+ Text(msg.text)
.lineSpacing(4)
.multilineTextAlignment(.leading)
.textSelection(.enabled)