Skip to content
Permalink
Browse files

Support more Typeform subdomains (#410)

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 652161b7dca1996377edc0f925d1de4bfdfc2318
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/onebox/engine/typeform_onebox.rb
@@ -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

0 comments on commit 652161b

Please sign in to comment.
You can’t perform that action at this time.