lib/common.js
function normilizeSquareBrackets(str) {
    var m;

    while ((m = reSqrBrackets.exec(str))) {
        var header = m[1] ? m[1] + '.' : '';
        var body = m[2].replace(/\./g, "\\.");
        var footer = m[3] || '';
        str = header + body + footer;
    }

    return str;
}
function normilizeSquareBrackets(str) {
    var m;

    while ((m = reSqrBrackets.exec(str))) {
        var header = m[1] ? m[1] + '.' : '';
        var body = m[2].replace(/\./g, "\\.");
        var footer = m[3] || '';
        str = header + body + footer;
    }

    return str;
}
function normilizeSquareBrackets ( str ) { var m ; while ( ( m = reSqrBrackets . exec ( str ) ) ) { var header = m [ 1 ] ? m [ 1 ] + '.' : '' ; var body = m [ 2 ] . replace ( / \. / g , "\\." ) ; var footer = m [ 3 ] || '' ; str = header + body + footer ; } return str ; }
Replaces square brackets notation by escaped dot notation
@param {string} str
@returns {string}
Replaces square brackets notation by escaped dot notation