src/js/social-share.js
function makeUrl(name, data) {

        if (! data['summary']){
            data['summary'] = data['description'];
        }

        return templates[name].replace(/\{\{(\w)(\w*)\}\}/g, function (m, fix, key) {
            var nameKey = name + fix + key.toLowerCase();
            key = (fix + key).toLowerCase();

            return encodeURIComponent((data[nameKey] === undefined ? data[key] : data[nameKey]) || '');
        });
    }
function makeUrl(name, data) {

        if (! data['summary']){
            data['summary'] = data['description'];
        }

        return templates[name].replace(/\{\{(\w)(\w*)\}\}/g, function (m, fix, key) {
            var nameKey = name + fix + key.toLowerCase();
            key = (fix + key).toLowerCase();

            return encodeURIComponent((data[nameKey] === undefined ? data[key] : data[nameKey]) || '');
        });
    }
function makeUrl ( name , data ) { if ( ! data [ 'summary' ] ) { data [ 'summary' ] = data [ 'description' ] ; } return templates [ name ] . replace ( / \{\{(\w)(\w*)\}\} / g , function ( m , fix , key ) { var nameKey = name + fix + key . toLowerCase ( ) ; key = ( fix + key ) . toLowerCase ( ) ; return encodeURIComponent ( ( data [ nameKey ] === undefined ? data [ key ] : data [ nameKey ] ) || '' ) ; } ) ; }
Build the url of icon.

@param {String} name
@param {Object} data

@returns {String}
Build the url of icon .