Skip to content

Commit

Permalink
Support more Typeform subdomains (#410)
Browse files Browse the repository at this point in the history
Dashes or underscores seem to be allowed by Typeform but did not trigger the mixin so far.
Adapting the regex already fixed the issue for our customer.
  • Loading branch information
dominic-berta authored and SamSaffron committed Sep 11, 2019
1 parent 2473d3b commit 652161b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/onebox/engine/typeform_onebox.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module Engine
class TypeformOnebox
include Engine

matches_regexp(/^https?:\/\/[a-z0-9]+\.typeform\.com\/to\/[a-zA-Z0-9]+/)
matches_regexp(/^https?:\/\/[a-z0-9\-_]+\.typeform\.com\/to\/[a-zA-Z0-9]+/)
always_https

def to_html
Expand Down

0 comments on commit 652161b

Please sign in to comment.