Update Pastebin embedding to handle new URLs for raw pastes.

This commit is contained in:
ccd0 2016-05-30 02:54:48 -07:00
parent 244f525d9f
commit defc8a121b

View File

@ -310,7 +310,7 @@ Embedding =
loop: true
,
key: 'Pastebin'
regExp: /^\w+:\/\/(?:\w+\.)?pastebin\.com\/(?!u\/)(?:[\w\.]+\?i\=)?(\w+)/
regExp: /^\w+:\/\/(?:\w+\.)?pastebin\.com\/(?!u\/)(?:[\w.]+(?:\/|\?i\=))?(\w+)/
el: (a) ->
div = $.el 'iframe',
src: "//pastebin.com/embed_iframe.php?i=#{a.dataset.uid}"