mobzilla/capybara-mechanize — comment on commit 2015fd760846fd52c317da2080dcb148c7870c0a
File: lib/capybara/mechanize/browser.rb line 187
By ransom4real:

Even better.

Cheers

Sent from my iPhone

On 20 Feb 2012, at 14:03, matt-crazypanda wrote:

> Updated this to include a regex to check for both:
>
> ```ruby
> url = "http://#{url}" unless url =~ /^http(s?):/
> ```
>
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/mobzilla/capybara-mechanize/commit/2015fd760846fd52c317da2080dcb148c7870c0a#commitcomment-985691