Issue #12464 has been updated by Yui NARUSE.

Status changed from Open to Closed

It is the matter of URL spec.
https://url.spec.whatwg.org/

If the spec is changed as you say, we'll follow it.

----------------------------------------
Bug #12464: URI.regexp should not include comma at the end of string if followed by whitespace
https://bugs.ruby-lang.org/issues/12464#change-59284

* Author: Nikos Timiopulos
* Status: Closed
* Priority: Normal
* Assignee: 
* ruby -v: ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15]
* Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
Hello,

URI.regexp should not include comma at the end of string if followed by whitespace in my opinion.

USE CASES:

1) test string: "http://domain.com, " - URI.regexp matches: "http://domain.com" (without comma)
2) test string: "http://domain.com/?params=21,22,23, " - URI.regexp matches: "http://domain.com/?params=21,22,23," (with comma)

The point is some users are typing URLs with comma behind so than links are broken.



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>