emoji - Swift `join` hangs when joining string with country flag -


i discovered while working in swift 1.2. have reported bug. wonder why?

import uikit  var str = "πŸ‡¬πŸ‡§ lhr ✈️ sfo πŸ‡ΊπŸ‡Έ"  ([str] nsarray).componentsjoinedbystring("") // work join("", [str]) // hangs forever 

apple has fix problem in swift 2.0, join replace method joinwithseparator(separator: string) -> string works fine flags.

here code snippet.

var str = "πŸ‡¬πŸ‡§ lhr ✈️ sfo πŸ‡ΊπŸ‡Έ"  ([str] nsarray).componentsjoinedbystring("") // work  [str].joinwithseparator("") 

output

πŸ‡¬πŸ‡§ lhr ✈️ sfo πŸ‡ΊπŸ‡Έ πŸ‡¬πŸ‡§ lhr ✈️ sfo πŸ‡ΊπŸ‡Έ πŸ‡¬πŸ‡§ lhr ✈️ sfo πŸ‡ΊπŸ‡Έ 

Comments

Popular posts from this blog

php - Admin SDK -- get information about the group -

dns - How To Use Custom Nameserver On Free Cloudflare? -

Python Error - TypeError: input expected at most 1 arguments, got 3 -