Would just changing line 93 to this work:

```ruby
uri = url.strip.gsub(/\A([Ww]ebcal|https?):/, "#{protocol}:")
```