core/plugins/lib/validator/src/main.js
function(rules, tmp) {
        var _r = null;
        for (var r in rules) {

            if ( typeof(rules[r]) == 'object' && typeof(instance.rules[tmp + r]) == 'undefined' ) {

                _r = r;
                if (/\[|\]/.test(r) ) { // must be a real path
                    _r = r.replace(/\[/g, '.').replace(/\]/g, '');
                }

                instance.rules[tmp + _r] = rules[r];
                //delete instance.rules[r];
                parseRules(rules[r], tmp + _r +'.');
            }
        }
    }
function(rules, tmp) {
        var _r = null;
        for (var r in rules) {

            if ( typeof(rules[r]) == 'object' && typeof(instance.rules[tmp + r]) == 'undefined' ) {

                _r = r;
                if (/\[|\]/.test(r) ) { // must be a real path
                    _r = r.replace(/\[/g, '.').replace(/\]/g, '');
                }

                instance.rules[tmp + _r] = rules[r];
                //delete instance.rules[r];
                parseRules(rules[r], tmp + _r +'.');
            }
        }
    }
function ( rules , tmp ) { var _r = null ; for ( var r in rules ) { if ( typeof ( rules [ r ] ) == 'object' && typeof ( instance . rules [ tmp + r ] ) == 'undefined' ) { _r = r ; if ( / \[|\] / . test ( r ) ) { // must be a real path _r = r . replace ( / \[ / g , '.' ) . replace ( / \] / g , '' ) ; } instance . rules [ tmp + _r ] = rules [ r ] ; //delete instance.rules[r]; parseRules ( rules [ r ] , tmp + _r + '.' ) ; } } }
parseRules - Preparing rules paths

@param {object} rules
@param {string} tmp - path
parseRules - Preparing rules paths