Merge pull request #894 from nyuszika7h/add-image-formats
Add some image formats
This commit is contained in:
commit
dd351224d9
1 changed files with 2 additions and 2 deletions
|
@ -276,7 +276,7 @@ plugins.factory('userPlugins', function() {
|
||||||
* Image Preview
|
* Image Preview
|
||||||
*/
|
*/
|
||||||
var imagePlugin = new UrlPlugin('image', function(url) {
|
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. */
|
/* A fukung.net URL may end by an image extension but is not a direct link. */
|
||||||
if (url.indexOf("^https?://fukung.net/v/") != -1) {
|
if (url.indexOf("^https?://fukung.net/v/") != -1) {
|
||||||
url = url.replace(/.*\//, "http://media.fukung.net/imgs/");
|
url = url.replace(/.*\//, "http://media.fukung.net/imgs/");
|
||||||
|
@ -354,7 +354,7 @@ plugins.factory('userPlugins', function() {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Cloud Music Embedded Players
|
* Cloud Music Embedded Players
|
||||||
|
|
Loading…
Reference in a new issue