May URL scheme contain an underscore?

人走茶凉 提交于 2019-12-04 23:00:01

问题


According to the spec for URL, can the scheme have an underscore? E.g., is web_view://example.com a valid URL?


回答1:


No.

A valid RFC 3986 URL scheme must consist of "a letter and followed by any combination of letters, digits, plus ("+"), period ("."), or hyphen ("-")."

    scheme      = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." )


来源:https://stackoverflow.com/questions/9142309/may-url-scheme-contain-an-underscore

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!