Add some image formats
Added support for .bmp, .svg and .webp.
This commit is contained in:
parent
f998a003c0
commit
f280c7c6f1
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue