diff --git a/lib/list.js b/lib/list.js index 898a5e6..48b36f4 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}) ([\.DA]+) +(\d+) +\d+ +(.+)/; + var regex = /(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}) ([\.DA]+) +(\d+) +(\d+)? +(.+)/; /* jshint maxlen: 80 */ // Create a string that can be parsed by `run`. @@ -65,7 +65,7 @@ module.exports = function (archive, options) { date: new Date(res[1]), attr: res[2], size: parseInt(res[3], 10), - name: res[4].replace(path.sep, '/') + name: res[5].replace(path.sep, '/') }; entries.push(e); diff --git a/package.json b/package.json index 6d18639..313c99b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-7z", - "version": "0.4.0", + "version": "0.4.1", "description": "A Node.js wrapper for 7-Zip", "main": "lib/index.js", "scripts": { @@ -20,7 +20,8 @@ "author": "Quentin Rossetti ", "contributors": [ "HelloGravity", - "sketchpunk" + "sketchpunk", + "Dannii Willis " ], "license": "ISC", "bugs": {