fossasia/loklak_webclient

View on GitHub
iframely/plugins/domains/i.imgur.com.js

Summary

Maintainability
A
0 mins
Test Coverage
module.exports = {

    re: /https?:\/\/i\.imgur\.com\/(\w+)\.(jpg|gif|png|gifv|webm|mp4)(\?.*)?$/i,

    getLink: function(urlMatch, cb) {

        cb ({
            redirect: "http://imgur.com/" + urlMatch[1]
        });
    },

    tests: [{
        noFeeds: true
    }]
};