stream-chat-swift icon indicating copy to clipboard operation
stream-chat-swift copied to clipboard

There is a bug in SwiftyScanner

Open behrad-kzm opened this issue 2 years ago • 1 comments

What did you do?

I sent this url as a chat message: https://salam.com/khubi?chetori=salam_chetori_khubi

What did you expect to happen?

I expect that the url shows exactly the same as we sent via other platforms

What happened instead?

in ios chat the url will show without underlines: https://salam.com/khubi?chetori=salamchetorikhubi

GetStream Environment

GetStream Chat version: 4.38.0 GetStream Chat frameworks: StreamChat, StreamChatUI iOS version: all Swift version: all Xcode version: all Device: all

Additional context

I tracked the inputString through out the streamChatUI and found out that in SwiftyTokeniser at line 92 when you set elementArray = scanner.scan() it will detect those underlines as type ElementType.tag and this will cause the problem.

Screenshot 2023-10-05 at 12 38 20 AM

Screenshot 2023-10-05 at 12 39 04 AM

behrad-kzm avatar Oct 04 '23 21:10 behrad-kzm

Hi @behrad-kzm,

We are sorry to hear there is this issue in the library. We will have a look as soon as we can.

Thank you!

polqf avatar Oct 06 '23 07:10 polqf

Hello @behrad-kzm, we have released a new iOS SDK version 4.51.0 which addresses this issue.

laevandus avatar Mar 26 '24 14:03 laevandus