mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: ico are images too
This commit is contained in:
parent
af91d6f35b
commit
bebeeffc30
4 changed files with 6 additions and 6 deletions
|
@ -95,7 +95,7 @@ test("getUploadMarkdown", function() {
|
|||
});
|
||||
|
||||
test("isAnImage", function() {
|
||||
_.each(["png", "jpg", "jpeg", "bmp", "gif", "tif", "tiff"], function(extension) {
|
||||
_.each(["png", "jpg", "jpeg", "bmp", "gif", "tif", "tiff", "ico"], function(extension) {
|
||||
var image = "image." + extension;
|
||||
ok(utils.isAnImage(image), image + " is recognized as an image");
|
||||
ok(utils.isAnImage("http://foo.bar/path/to/" + image), image + " is recognized as an image");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue