src/utils/StringUtils.js
function breakableUrl(url) {
        // This is for displaying in UI, so always want it escaped
        var escUrl = _.escape(url);

        // Inject zero-width space character (U+200B) near path separators (/) to allow line breaking there
        return escUrl.replace(
            new RegExp(regexEscape("/"), "g"),
            "/" + "&#8203;"
        );
    }
function breakableUrl(url) {
        // This is for displaying in UI, so always want it escaped
        var escUrl = _.escape(url);

        // Inject zero-width space character (U+200B) near path separators (/) to allow line breaking there
        return escUrl.replace(
            new RegExp(regexEscape("/"), "g"),
            "/" + "&#8203;"
        );
    }
function breakableUrl ( url ) { // This is for displaying in UI, so always want it escaped var escUrl = _ . escape ( url ) ; // Inject zero-width space character (U+200B) near path separators (/) to allow line breaking there return escUrl . replace ( new RegExp ( regexEscape ( "/" ) , "g" ) , "/" + "&#8203;" ) ; }
Return an escaped path or URL string that can be broken near path separators.
@param {string} url the path or URL to format
@return {string} the formatted path or URL
Return an escaped path or URL string that can be broken near path separators .