Skip to content

Commit

Permalink
list() was not returning the data for files which had a blank "Compre…
Browse files Browse the repository at this point in the history
…ssed" column
  • Loading branch information
curiousdannii committed Jan 12, 2016
1 parent 80dd29a commit f3cfaff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions 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}) ([\.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`.
Expand Down Expand Up @@ -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);
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand All @@ -20,7 +20,8 @@
"author": "Quentin Rossetti <[email protected]>",
"contributors": [
"HelloGravity",
"sketchpunk"
"sketchpunk",
"Dannii Willis <[email protected]>"
],
"license": "ISC",
"bugs": {
Expand Down

0 comments on commit f3cfaff

Please sign in to comment.