Project

General

Profile

Actions

Bug #5831

closed

URI.extract not properly extracting URIs with trailing slash followed by single quote

Added by bcardarella (Brian Cardarella) almost 13 years ago. Updated almost 13 years ago.

Status:
Rejected
Assignee:
-
Target version:
ruby -v:
1.9.2-p290
Backport:
[ruby-core:<unknown>]

Description

I have example failing test cases here:

https://gist.github.com/1547904

Here is my use case. I am looking to extract URIs from emails. It has been recommended to use Nokogiri and that is just fine if the email is in HTML. But if the email is in plain-text Nokogiri doesn't work. IMO this is a bug with URI.extract's regexp.

I have tested this against 1.8.7, 1.9.2, and 1.9.3 and it exists in all three.

Actions

Also available in: Atom PDF

Like0
Like0Like0