File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Sources/StreamChatSwiftUI/ChatChannel/MessageList Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
33
44# Upcoming
55
6- ### π Changed
6+ ### π Fixed
7+ - Fix markdown links with query parameters [ #581 ] ( https://github.com/GetStream/stream-chat-swiftui/pull/581 )
78
89# [ 4.61.0] ( https://github.com/GetStream/stream-chat-swiftui/releases/tag/4.61.0 )
910_ July 31, 2024_
Original file line number Diff line number Diff line change @@ -327,7 +327,8 @@ public struct LinkDetectionTextView: View {
327327
328328 let range = NSRange ( location: 0 , length: message. adjustedText. utf16. count)
329329 linkDetector. links ( in: message. adjustedText) . forEach { textLink in
330- let pattern = " \\ [([^ \\ ]]+) \\ ] \\ ( \( textLink. originalText) \\ ) "
330+ let escapedOriginalText = NSRegularExpression . escapedPattern ( for: textLink. originalText)
331+ let pattern = " \\ [([^ \\ ]]+) \\ ] \\ ( \( escapedOriginalText) \\ ) "
331332 if let regex = try ? NSRegularExpression ( pattern: pattern) {
332333 containsLinks = ( regex. firstMatch (
333334 in: message. adjustedText,
You canβt perform that action at this time.
0 commit comments