url - Android Linkify not detecting some new top-level domains -


i using linkify detect urls in text view

linkify.addlinks(messagetext, linkify.web_urls); 

it works great , detect "most" urls, however, seems class regex pre set detect domains only. came across url http://kodi.wiki/ , linkify failed detect url. doesn't detect others like

http://test.menu http://test.link http://test.foo 

so safe/wise use url regex detect urls (doamin names , ips)? or shall live , wait google fix linkify?

(note: don't regex since experience cannot predict weird glitches might encounter them)


update

there bug report created android here state problem got fixed in android 5, there no fix android versions prior that. , based on comments seems google using regex match urls without validating gtlds, think way on devices cannot updated easily.


Comments

Popular posts from this blog

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -