lib/numbering.js
function replaceNumbering(str, value, count) {
    // replace numbering in strings only: skip explicit wrappers that could
    // contain unescaped numbering tokens
    if (typeof str === 'string') {
        const ranges = getNumberingRanges(str);
        return replaceNumberingRanges(str, ranges, value, count);
    }

    return str;
}
function replaceNumbering(str, value, count) {
    // replace numbering in strings only: skip explicit wrappers that could
    // contain unescaped numbering tokens
    if (typeof str === 'string') {
        const ranges = getNumberingRanges(str);
        return replaceNumberingRanges(str, ranges, value, count);
    }

    return str;
}
function replaceNumbering ( str , value , count ) { // replace numbering in strings only: skip explicit wrappers that could // contain unescaped numbering tokens if ( typeof str === 'string' ) { const ranges = getNumberingRanges ( str ) ; return replaceNumberingRanges ( str , ranges , value , count ) ; } return str ; }
Replaces numbering in given string
@param  {String} str
@param  {Number} value
@return {String}
Replaces numbering in given string