make pastebin embedding work when link is to raw version or other page using ?i=
This commit is contained in:
parent
db15797639
commit
42468dd5c6
@ -312,7 +312,7 @@ Linkify =
|
|||||||
el
|
el
|
||||||
,
|
,
|
||||||
key: 'pastebin'
|
key: 'pastebin'
|
||||||
regExp: /.*(?:pastebin.com\/(?!u\/))([^#\&\?]*).*/
|
regExp: /.*pastebin\.com\/(?!u\/)(?:[\w\.]+\?i\=)?(\w+).*/
|
||||||
el: (a) ->
|
el: (a) ->
|
||||||
div = $.el 'iframe',
|
div = $.el 'iframe',
|
||||||
src: "http://pastebin.com/embed_iframe.php?i=#{a.dataset.uid}"
|
src: "http://pastebin.com/embed_iframe.php?i=#{a.dataset.uid}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user