lib/formatErrors.js
function filterMatch(s, regExps) {
    if (!regExps) {
        return false;
    }
    var match = false;
    for (var i = 0; i < regExps.length && !match; i++) {
        match = s.match(regExps[i]) !== null;
    }

    return match;
}
function filterMatch(s, regExps) {
    if (!regExps) {
        return false;
    }
    var match = false;
    for (var i = 0; i < regExps.length && !match; i++) {
        match = s.match(regExps[i]) !== null;
    }

    return match;
}
function filterMatch ( s , regExps ) { if ( ! regExps ) { return false ; } var match = false ; for ( var i = 0 ; i < regExps . length && ! match ; i ++ ) { match = s . match ( regExps [ i ] ) !== null ; } return match ; }
Determine if a provided array of regular expressions includes a match for a provided String.

@method filterMatch
@private
@param {String} s the String
@param {String[]} regExps an array of reg. exp. Strings
@return {Boolean} true if a match is found; false otherwise
Determine if a provided array of regular expressions includes a match for a provided String .