From: nikos@... Date: 2016-06-06T16:59:35+00:00 Subject: [ruby-core:75864] [Ruby trunk Bug#12464] URI.regexp should not include comma at the end of string if followed by whitespace Issue #12464 has been reported by Nikos Timiopulos. ---------------------------------------- Bug #12464: URI.regexp should not include comma at the end of string if followed by whitespace https://bugs.ruby-lang.org/issues/12464 * Author: Nikos Timiopulos * Status: Open * 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: