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