module Onebox
module Engine
class AsciinemaOnebox
include Engine
include StandardEmbed
always_https
matches_regexp(/^https?:\/\/asciinema\.org\/a\/[\p{Alnum}_\-]+$/)
def to_html
""
end
def placeholder_html
""
end
private
def match
@match ||= @url.match(/asciinema\.org\/a\/(?[\p{Alnum}_\-]+)$/)
end
end
end
end