Merge pull request #894 from nyuszika7h/add-image-formats

Add some image formats
This commit is contained in:
Lorenz Hübschle-Schneider 2017-02-09 09:37:18 +01:00 committed by GitHub
commit dd351224d9

View file

@ -276,7 +276,7 @@ plugins.factory('userPlugins', function() {
* Image Preview
*/
var imagePlugin = new UrlPlugin('image', function(url) {
if (url.match(/\.(png|gif|jpg|jpeg)(:(small|medium|large))?\b/i)) {
if (url.match(/\.(bmp|gif|jpe?g|png|svg|webp)(:(small|medium|large))?\b/i)) {
/* A fukung.net URL may end by an image extension but is not a direct link. */
if (url.indexOf("^https?://fukung.net/v/") != -1) {
url = url.replace(/.*\//, "http://media.fukung.net/imgs/");
@ -354,7 +354,7 @@ plugins.factory('userPlugins', function() {
};
}
});
/*
* Cloud Music Embedded Players