0
我想验证的URI,如:如何在elixir中验证url?
http://vk.com
http://semantic-ui.com/collections/menu.html
https://translate.yandex.ru/?text=poll&lang=en-ru
,而不是
www.vk.com
abdeeej
http://vk
但还没有找到它本机代码实现的任何包。
我该怎么做?
'http:// vk'是一个完全有效的URL。你想拒绝主机名不包含任何“。”的URL吗? – Dogbert
你为什么认为'http:// vk'是一个完美的网址?域名在哪里? – asiniy
'http:// localhost'是一个有效的URL。 http://stackoverflow.com/questions/20573488/why-does-html5-form-validation-allow-emails-without-a-dot – Dogbert