lib/validator.js
function _formatMessage(message, attribute, rule, parameters) {
    parameters.unshift(_getAttribute(attribute));

    for(i in parameters){
      message = message.replace(/:[a-zA-z_][a-zA-z_0-9]+/, parameters[i]);
    }

    if (typeof _replacers[rule] === 'function') {
      message = _replacers[rule](message, attribute, rule, parameters);
    }

    return message;
  }
function _formatMessage(message, attribute, rule, parameters) {
    parameters.unshift(_getAttribute(attribute));

    for(i in parameters){
      message = message.replace(/:[a-zA-z_][a-zA-z_0-9]+/, parameters[i]);
    }

    if (typeof _replacers[rule] === 'function') {
      message = _replacers[rule](message, attribute, rule, parameters);
    }

    return message;
  }
function _formatMessage ( message , attribute , rule , parameters ) { parameters . unshift ( _getAttribute ( attribute ) ) ; for ( i in parameters ) { message = message . replace ( / :[a-zA-z_][a-zA-z_0-9]+ / , parameters [ i ] ) ; } if ( typeof _replacers [ rule ] === 'function' ) { message = _replacers [ rule ] ( message , attribute , rule , parameters ) ; } return message ; }
replace attributes.

@param {String} message
@param {String} attribute
@param {String} rule
@param {Array}  parameters

@return {String}
replace attributes .