build-system/tasks/size.js
/**
 * Finds the counterpart entry of the extension file, wether it be
 * the unminified or the minified counterpart.
 * @param {!Array<!Array>} rows
 * @param {string} filename
 */
Finds the counterpart entry of the extension file, wether it be
the unminified or the minified counterpart.
@param {!Array} rows
@param {string} filename
Finds the counterpart entry of the extension file wether it be the unminified or the minified counterpart . @param { !Array } rows @param { string } filename
function normalizeExtension(rows, filename) {
  var isMax = /\.max\.js$/.test(filename);
  var counterpartName = filename.replace(/(v0\/.*?)(\.max)?(\.js)$/,
      function(full, grp1, grp2, grp3) {
        if (isMax) {
          return grp1 + grp3;
        }
        return full;
      });
  if (isMax) {
    normalizeRow(rows, counterpartName, filename, false);
  } else {
    normalizeRow(rows, filename, counterpartName, false);
  }
}
function normalizeExtension ( rows , filename ) { var isMax = / \.max\.js$ / . test ( filename ) ; var counterpartName = filename . replace ( / (v0\/.*?)(\.max)?(\.js)$ / , function ( full , grp1 , grp2 , grp3 ) { if ( isMax ) { return grp1 + grp3 ; } return full ; } ) ; if ( isMax ) { normalizeRow ( rows , counterpartName , filename , false ) ; } else { normalizeRow ( rows , filename , counterpartName , false ) ; } }
Finds the counterpart entry of the extension file, wether it be
 the unminified or the minified counterpart.
Finds the counterpart entry of the extension file wether it be the unminified or the minified counterpart .