Better gist regex
This commit is contained in:
parent
5ada68f26f
commit
ce25bf8ef8
@ -4319,7 +4319,7 @@
|
||||
}
|
||||
},
|
||||
gist: {
|
||||
regExp: /.*(?:gist.github.com\/.*\/)([^#\&\?]*).*/,
|
||||
regExp: /.*(?:gist.github.com.*\/)([^\/][^\/]*)$/,
|
||||
el: function() {
|
||||
var div;
|
||||
|
||||
|
||||
@ -4315,7 +4315,7 @@
|
||||
}
|
||||
},
|
||||
gist: {
|
||||
regExp: /.*(?:gist.github.com\/.*\/)([^#\&\?]*).*/,
|
||||
regExp: /.*(?:gist.github.com.*\/)([^\/][^\/]*)$/,
|
||||
el: function() {
|
||||
var div;
|
||||
|
||||
|
||||
@ -4318,7 +4318,7 @@
|
||||
}
|
||||
},
|
||||
gist: {
|
||||
regExp: /.*(?:gist.github.com\/.*\/)([^#\&\?]*).*/,
|
||||
regExp: /.*(?:gist.github.com.*\/)([^\/][^\/]*)$/,
|
||||
el: function() {
|
||||
var div;
|
||||
|
||||
|
||||
@ -207,7 +207,7 @@ Linkify =
|
||||
src: "http://pastebin.com/embed_iframe.php?i=#{@name}"
|
||||
|
||||
gist:
|
||||
regExp: /.*(?:gist.github.com\/.*\/)([^#\&\?]*).*/
|
||||
regExp: /.*(?:gist.github.com.*\/)([^\/][^\/]*)$/
|
||||
el: ->
|
||||
div = $.el 'iframe',
|
||||
# Github doesn't allow embedding straight from the site, so we use an external site to bypass that.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user