lib/onebox/engine/google_calendar_onebox.rb in onebox-2.2.12 vs lib/onebox/engine/google_calendar_onebox.rb in onebox-2.2.13
- old
+ new
@@ -3,10 +3,10 @@
module Onebox
module Engine
class GoogleCalendarOnebox
include Engine
- matches_regexp /^(https?:)?\/\/((www|calendar)\.google\.[\w.]{2,}|goo\.gl)\/calendar\/.+$/
+ matches_regexp(/^(https?:)?\/\/((www|calendar)\.google\.[\w.]{2,}|goo\.gl)\/calendar\/.+$/)
always_https
requires_iframe_origins "https://calendar.google.com"
def to_html
url = @url.split('&').first