ruby-changes:52271
From: kazu <ko1@a...>
Date: Mon, 20 Aug 2018 17:25:00 +0900 (JST)
Subject: [ruby-changes:52271] kazu:r64479 (trunk): Update link to Email address specification
kazu 2018-08-20 17:24:55 +0900 (Mon, 20 Aug 2018) New Revision: 64479 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64479 Log: Update link to Email address specification The current link leads to 404, I updated to the actual one. [Fix GH-1929] [ci skip] Author: Nikolay Belov <travelerspb@g...> Modified files: trunk/lib/uri/mailto.rb Index: lib/uri/mailto.rb =================================================================== --- lib/uri/mailto.rb (revision 64478) +++ lib/uri/mailto.rb (revision 64479) @@ -52,7 +52,7 @@ module URI https://github.com/ruby/ruby/blob/trunk/lib/uri/mailto.rb#L52 # pct-encoded = "%" HEXDIG HEXDIG HEADER_REGEXP = /\A(?<hfield>(?:%\h\h|[!$'-.0-;@-Z_a-z~])*=(?:%\h\h|[!$'-.0-;@-Z_a-z~])*)(?:&\g<hfield>)*\z/ # practical regexp for email address - # http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html#valid-e-mail-address + # https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address EMAIL_REGEXP = /\A[a-zA-Z0-9.!\#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*\z/ # :startdoc: -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/