# \[Bug #2368\](Rejected) URI.regexp $B$K%^%C%A$9$kJ8;zNs$,(B URI.parse $B$G$-$J$$$3$H$,$"$k(B

**URL:** <https://www.ruby-forum.com/t/bug-2368-rejected-uri-regexp-b-k-c-a-9-kj8-zns-b-uri-parse-b-g-j-3-h-k-b/178988>\
**Category:** Development\
**Created:** [November 15, 2009, 6:09am UTC](https://www.ruby-forum.com/t/bug-2368-rejected-uri-regexp-b-k-c-a-9-kj8-zns-b-uri-parse-b-g-j-3-h-k-b/178988 "2009-11-15T06:09:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yui\_NARUSE](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/8edcca/32.png) [@Yui\_NARUSE](https://www.ruby-forum.com/u/Yui_NARUSE)\
**Post date:** [November 15, 2009, 6:09am UTC](https://www.ruby-forum.com/t/bug-2368-rejected-uri-regexp-b-k-c-a-9-kj8-zns-b-uri-parse-b-g-j-3-h-k-b/178988/1 "2009-11-15T06:09:49Z")

</div>

e$B%A%1%C%He(B #2368 e$B$,99?7$5$l$^$7$?!#e(B (by Yui NARUSE)

e$B%9%F!\<%?%9e(B Opene$B$+$ie(BRejectede$B$KJQ99e(B

[http://www.ietf.org/rfc/rfc3986](http://www.ietf.org/rfc/rfc3986) e$B$Ne(B [Page 20] e$B$K$F!“e(B  
e$B0J2\<$NDL$j6X;\_$5$l$F$$$k$?$a!“e(B"http://” e$B$OIT@5$Je(B URI  
e$B$G$”$j!"Nc30$OBEEv$G$7$g$&!#e(B

## If the URI scheme defines a default for host, then that default applies when the host subcomponent is undefined or when the registered name is empty (zero length). For example, the “file” URI scheme is defined so that no authority, an empty host, and “localhost” all mean the end-user’s machine, whereas the “http” scheme considers a missing authority or empty host invalid.

[http://redmine.ruby-lang.org/issues/show/2368](http://redmine.ruby-lang.org/issues/show/2368)
