dist/hawtio-utilities.js
function trimTrailing(text, postfix) {
        if (text && postfix) {
            if (_.endsWith(text, postfix)) {
                return text.substring(0, text.length - postfix.length);
            }
        }
        return text;
    }
function trimTrailing(text, postfix) {
        if (text && postfix) {
            if (_.endsWith(text, postfix)) {
                return text.substring(0, text.length - postfix.length);
            }
        }
        return text;
    }
function trimTrailing ( text , postfix ) { if ( text && postfix ) { if ( _ . endsWith ( text , postfix ) ) { return text . substring ( 0 , text . length - postfix . length ) ; } } return text ; }
Trims the trailing postfix from a string if its present
@method trimTrailing
@for Core
@static
@param {String} trim
@param {String} postfix
@return {String}
Trims the trailing postfix from a string if its present