'use strict';

angular.module('gisto.filter.dotToDash', []).filter('dotToDash', function () {
    return function (input) {
        return input.replace('.','-');
    };
});
'use strict';

angular.module('gisto.filter.dotToDash', []).filter('dotToDash', function () {
    return function (input) {
        var output = input;
        if(input.charAt(0) === '.') {
            output = input.substr(1);
        }
        return output.replace('.','-');
    };
});
FIX (dotfiles in gist): fix links of dotfiles
FIX (dotfiles in gist): fix links of dotfiles

- fix links of dotfiles not handled correctly by "dotToDash" custom filter
