Last mimetype match fix fix, remove that trailing space.
This commit is contained in:
parent
439422d655
commit
dcd14c9989
@ -1311,7 +1311,7 @@
|
||||
}
|
||||
threads = "<select>" + threads + "</select>";
|
||||
}
|
||||
mimeTypes = $('.rules').textContent.toLowerCase().match(/: (.+)/)[1].replace(/\w+/g, function(type) {
|
||||
mimeTypes = $('.rules').textContent.toLowerCase().match(/: (.+) /)[1].replace(/\w+/g, function(type) {
|
||||
switch (type) {
|
||||
case 'jpg':
|
||||
return 'image/jpeg';
|
||||
|
||||
@ -967,7 +967,7 @@ qr =
|
||||
threads += "<option value=#{thread.id}>Thread #{thread.id}</option>"
|
||||
threads = "<select>#{threads}</select>"
|
||||
# chose only supported files
|
||||
mimeTypes = $('.rules').textContent.toLowerCase().match(/: (.+)/)[1].replace /\w+/g, (type) ->
|
||||
mimeTypes = $('.rules').textContent.toLowerCase().match(/: (.+) /)[1].replace /\w+/g, (type) ->
|
||||
switch type
|
||||
when 'jpg'
|
||||
'image/jpeg'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user