Open aleksandrshoshiashvili opened 6 years ago
Thanks @aleksandrshoshiashvili
I pushed a first fix for this.
When I tried
XCTAssertEqual(Smile.extractEmojis(string: "Hello ⏰⌛️💳🆙."), "⏰⌛️💳🆙")
I got
XCTAssertEqual failed: ("⏰️💳🆙") is not equal to ("⏰⌛️💳🆙")
Only ⌛️ seems to bug.
Which function failed with the other emojis?
Also, thanks a lot for the unicode ranges! Where did you get those from?
@Francescu I tested the validator for TextField by entering all the emoji one by one, so I found out that Smile.isEmoji returned wrong result for some of them. I printed their unicodes and update switch according to it :)
Unfortunately, I forgot what exactly the emoji are wrong, because I did it couple of weeks ago, just decided to share my finding with you.
@aleksandrshoshiashvili wow, nice! Thanks a lot for the answers.
I'll dig more and use the isEmoji
function to tests the emojis.
For example: ⏰⌛️💳🆙...
I suggest to update switch: