May URL scheme contain an underscore?

后端 未结 1 493
说谎
说谎 2021-02-14 16:30

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

1条回答
  •  悲&欢浪女
    2021-02-14 17:26

    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 / "+" / "-" / "." )
    

    0 讨论(0)
提交回复
热议问题