extension based embed regexps should be case insensitive
This commit is contained in:
parent
935e9f27e6
commit
60e0210d0a
@ -226,7 +226,7 @@ Linkify =
|
|||||||
|
|
||||||
ordered_types: [
|
ordered_types: [
|
||||||
key: 'audio'
|
key: 'audio'
|
||||||
regExp: /\.(?:mp3|ogg|wav)$/
|
regExp: /\.(?:mp3|ogg|wav)$/i
|
||||||
style: ''
|
style: ''
|
||||||
el: (a) ->
|
el: (a) ->
|
||||||
$.el 'audio',
|
$.el 'audio',
|
||||||
@ -248,7 +248,7 @@ Linkify =
|
|||||||
return file for file of files when files.hasOwnProperty file
|
return file for file of files when files.hasOwnProperty file
|
||||||
,
|
,
|
||||||
key: 'image'
|
key: 'image'
|
||||||
regExp: /\.(?:gif|png|jpg|jpeg|bmp)$/
|
regExp: /\.(?:gif|png|jpg|jpeg|bmp)$/i
|
||||||
style: 'border: 0; width: auto; height: auto;'
|
style: 'border: 0; width: auto; height: auto;'
|
||||||
el: (a) ->
|
el: (a) ->
|
||||||
$.el 'div', <%= html('<a target="_blank" href="${a.href}"><img src="${a.href}"></a>') %>
|
$.el 'div', <%= html('<a target="_blank" href="${a.href}"><img src="${a.href}"></a>') %>
|
||||||
@ -278,7 +278,7 @@ Linkify =
|
|||||||
el
|
el
|
||||||
,
|
,
|
||||||
key: 'MediaCrush'
|
key: 'MediaCrush'
|
||||||
regExp: /^\w+:\/\/(?:www\.)?mediacru\.sh\/([\w\-]+)/i
|
regExp: /^\w+:\/\/(?:www\.)?mediacru\.sh\/([\w\-]+)/
|
||||||
style: 'border: 0;'
|
style: 'border: 0;'
|
||||||
el: (a) ->
|
el: (a) ->
|
||||||
el = $.el 'div'
|
el = $.el 'div'
|
||||||
@ -446,7 +446,7 @@ Linkify =
|
|||||||
dummy: true
|
dummy: true
|
||||||
,
|
,
|
||||||
key: 'video'
|
key: 'video'
|
||||||
regExp: /\.(?:ogv|webm|mp4)$/
|
regExp: /\.(?:ogv|webm|mp4)$/i
|
||||||
style: 'border: 0; width: auto; height: auto;'
|
style: 'border: 0; width: auto; height: auto;'
|
||||||
el: (a) ->
|
el: (a) ->
|
||||||
$.el 'video',
|
$.el 'video',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user