Post

Replies

Boosts

Views

Activity

Reply to NSRegularExpressions will get stuck when matching strings containing emoji with String.count.
I have same issue. Using utf16.count did not cause a hang. The problem did not occur when the emoji was not at the end. ex) let message = "Hello 😂 A"; I believe the difference between message.count and message.utf16.count has something to do with the hang of the symbol with the emoji data split at the end of the string. However, I don't know why this problem occurs.
Feb ’22