lib/onebox/engine/sketchfab_onebox.rb in onebox-1.8.77 vs lib/onebox/engine/sketchfab_onebox.rb in onebox-1.8.78
- old
+ new
@@ -2,10 +2,10 @@
module Engine
class SketchFabOnebox
include Engine
include StandardEmbed
- matches_regexp(/^https?:\/\/sketchfab\.com\/models\/[a-z0-9]{32}/)
+ matches_regexp(/^https?:\/\/sketchfab\.com\/(?:models\/|3d-models\/(?:[^\/\s]+-)?)([a-z0-9]{32})/)
always_https
def to_html
opengraph = get_opengraph