diff --git a/src/js/assets.js b/src/js/assets.js index 6b531281e..8549cd80c 100644 --- a/src/js/assets.js +++ b/src/js/assets.js @@ -441,12 +441,9 @@ var getRepoMetadata = function(callback) { var line, matches; for ( var i = 0; i < lines.length; i++ ) { line = lines[i]; - matches = line.match(/^([0-9a-f]+) (.+)$/); - if ( matches === null ) { - continue; - } - if ( listMap.hasOwnProperty(matches[2]) ) { - continue; + matches = line.match(/^[0-9a-f]+ (.+)$/); + if ( matches === null || listMap.hasOwnProperty(matches[1]) ) { + continue; } out.push(line); }