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