lib/onebox/engine/asciinema_onebox.rb in onebox-1.8.68 vs lib/onebox/engine/asciinema_onebox.rb in onebox-1.8.69
- old
+ new
@@ -16,11 +16,11 @@
"<img src='https://asciinema.org/a/#{match[:asciinema_id]}.png'>"
end
private
- def match
- @match ||= @url.match(/asciinema\.org\/a\/(?<asciinema_id>[\p{Alnum}_\-]+)$/)
- end
+ def match
+ @match ||= @url.match(/asciinema\.org\/a\/(?<asciinema_id>[\p{Alnum}_\-]+)$/)
+ end
end
end
end