code: 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;
  }
docs: Replaces square brackets notation by escaped dot notation
  @param {string} str
  @returns {string}