From 626b1b75cc2f0cca99838ae66eed32bbefdfc8ca Mon Sep 17 00:00:00 2001 From: Bulent Vural Date: Mon, 19 Sep 2016 14:14:05 +0000 Subject: [PATCH] Sometimes 7z does not include value in "Compressed" column, so the previous regex was failing. Signed-off-by: Bulent Vural --- lib/list.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/list.js b/lib/list.js index 007a07c..25ea0c9 100644 --- a/lib/list.js +++ b/lib/list.js @@ -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`.