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/).
3
3
4
4
# Upcoming
5
5
6
- ### 🔄 Changed
6
+ ### 🐞 Fixed
7
+ - Fix markdown links with query parameters [ #581 ] ( https://github.com/GetStream/stream-chat-swiftui/pull/581 )
7
8
8
9
# [ 4.61.0] ( https://github.com/GetStream/stream-chat-swiftui/releases/tag/4.61.0 )
9
10
_ July 31, 2024_
Original file line number Diff line number Diff line change @@ -327,7 +327,8 @@ public struct LinkDetectionTextView: View {
327
327
328
328
let range = NSRange ( location: 0 , length: message. adjustedText. utf16. count)
329
329
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) \\ ) "
331
332
if let regex = try ? NSRegularExpression ( pattern: pattern) {
332
333
containsLinks = ( regex. firstMatch (
333
334
in: message. adjustedText,
You can’t perform that action at this time.
0 commit comments