Allow query parameters in URLs embedded by extension.

This commit is contained in:
ccd0 2014-12-24 20:11:38 -08:00
parent a53624b1b0
commit 14101b7b95

View File

@ -250,7 +250,7 @@ Linkify =
ordered_types: [ ordered_types: [
key: 'audio' key: 'audio'
regExp: /\.(?:mp3|ogg|wav)$/i regExp: /\.(?:mp3|ogg|wav)(?:\?|$)/i
style: '' style: ''
el: (a) -> el: (a) ->
$.el 'audio', $.el 'audio',
@ -272,7 +272,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)$/i 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>') %>
@ -478,7 +478,7 @@ Linkify =
dummy: true dummy: true
, ,
key: 'video' key: 'video'
regExp: /\.(?:ogv|webm|mp4)$/i 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',