lib/postcss-filter-classes.js
/**
 * Concat various regular expressions into one
 * @param  {RegExp Array} regexes
 * @return {RegExp}       concatanated regexp
 */
Concat various regular expressions into one
@param  {RegExp Array} regexes
@return {RegExp}       concatanated regexp
Concat various regular expressions into one @param { RegExp Array } regexes @return { RegExp } concatanated regexp
function concatRegexes (regexes) {
  var rconcat = ''
  if (Array.isArray(regexes)) {
    for (var i = 0, l = regexes.length; i < l; i++) {
      rconcat += regexes[i].source + '|'
    }
    rconcat = rconcat.substr(0, rconcat.length - 1)
    return new RegExp(rconcat)
  }
}
function concatRegexes ( regexes ) { var rconcat = '' if ( Array . isArray ( regexes ) ) { for ( var i = 0 , l = regexes . length ; i < l ; i ++ ) { rconcat += regexes [ i ] . source + '|' } rconcat = rconcat . substr ( 0 , rconcat . length - 1 ) return new RegExp ( rconcat ) } }
Concat various regular expressions into one
 @param  {RegExp Array} regexes
 @return {RegExp}       concatanated regexp
Concat various regular expressions into one @param { RegExp Array } regexes @return { RegExp } concatanated regexp