Skip to content

Commit

Permalink
Sometimes 7z does not include value in "Compressed" column, so the pr…
Browse files Browse the repository at this point in the history
…evious regex was failing.

Signed-off-by: Bulent Vural <[email protected]>
  • Loading branch information
bulentv committed Sep 19, 2016
1 parent 68c7843 commit 626b1b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module.exports = function (archive, options) {

var spec = {};
/* jshint maxlen: 130 */
var regex = /(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}) ([\.D][\.R][\.H][\.S][\.A]) +(\d+) +(\d+)? +(.+)/;
var regex = /(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}) ([\.DA]+)\s+(\d+)\s*(?:\d+)\s+(\S+?\.\S+)/;
/* jshint maxlen: 80 */

// Create a string that can be parsed by `run`.
Expand Down

0 comments on commit 626b1b7

Please sign in to comment.