# frozen_string_literal: true
module Onebox
module Engine
class AsciinemaOnebox
include Engine
include StandardEmbed
always_https
matches_domain("asciinema.org")
def self.matches_path(path)
path.match?(%r{^/a/[\p{Alnum}_\-]+$})
end
def to_html
""
end
def placeholder_html
"
"
end
private
def match
@match ||= @url.match(/asciinema\.org\/a\/(?[\p{Alnum}_\-]+)$/)
end
end
end
end