Skip to content
This repository was archived by the owner on Apr 17, 2018. It is now read-only.

Conversation

@xentek
Copy link

@xentek xentek commented Sep 30, 2013

The current format's url regular expression pattern was tripping on a number of valid URLs, so this change updates it to use URI.regexp, which is provided by the ruby stdlib. To maintain some compatibility with the old regex, I have limited the valid urls accepted by this regex to only the http and https schemes, which may or may not be desired.

The current regex pattern was tripping on a number of valid URLs, so
this change updates it to use the URI module's regexp class. To maintain
some compatability with the old regex, I have limited the valid urls
accepted by this regex to the http and https schemes.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant