From abf8459325d77c856d49ba373e39cc87385dcd10 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Thu, 8 May 2014 01:51:34 -0700 Subject: [PATCH] small fixes to mediacrush embedding --- src/Linkification/Linkify.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Linkification/Linkify.coffee b/src/Linkification/Linkify.coffee index c1a7dedd4..47534bab9 100755 --- a/src/Linkification/Linkify.coffee +++ b/src/Linkification/Linkify.coffee @@ -317,13 +317,13 @@ Linkify = el , key: 'MediaCrush' - regExp: /.*(?:mediacru.sh\/)([0-9a-z_]+)/i + regExp: /.*(?:mediacru.sh\/)([0-9a-z_-]+)/i style: 'border: 0;' el: (a) -> el = $.el 'div' $.cache "https://mediacru.sh/#{a.dataset.uid}.json", -> {status} = @ - return div.textContent = "ERROR #{status}" unless status in [200, 304] + return el.textContent = "ERROR #{status}" unless status in [200, 304] {files} = @response for type in ['video/mp4', 'video/ogv', 'image/svg+xml', 'image/png', 'image/gif', 'image/jpeg', 'image/svg', 'audio/mpeg'] for file in files