7zip-min
Advanced tools
Comparing version 1.4.3 to 1.4.4
# Changelog | ||
## v1.4.4 | ||
- fix error with 'list' command if file contains " = " in the name | ||
- bump dependencies | ||
- add test to check filename with " = " for list command | ||
## v1.4.2 | ||
@@ -4,0 +10,0 @@ |
@@ -115,4 +115,5 @@ 'use strict'; | ||
for (let line of lines) { | ||
const data = line.split(' = '); | ||
if (data.length !== 2) continue; | ||
// Split by first " = " occurrence. This will also add an empty 3rd elm to the array. Just ignore it | ||
const data = line.split(/ = (.*)/s); | ||
if (data.length !== 3) continue; | ||
const name = data[0].trim(); | ||
@@ -119,0 +120,0 @@ const val = data[1].trim(); |
{ | ||
"name": "7zip-min", | ||
"version": "1.4.3", | ||
"version": "1.4.4", | ||
"description": "Standalone cross-platform zip/unzip with 7za", | ||
@@ -40,3 +40,3 @@ "main": "index.js", | ||
"ava": "^4.0.1", | ||
"fs-extra": "^10.0.0", | ||
"fs-extra": "^11.1.0", | ||
"fsify": "^5.0.0", | ||
@@ -43,0 +43,0 @@ "glob": "^8.0.1", |
@@ -31,3 +31,3 @@ 'use strict'; | ||
type: fsify.FILE, | ||
name: 'testDir_dir1_file1.txt', | ||
name: 'Some = File = Name.txt', | ||
contents: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus vel odio nunc.', | ||
@@ -72,2 +72,5 @@ }, | ||
t.is(content.length, 6); | ||
content.forEach(el => { | ||
t.true(Boolean(el.name)); | ||
}); | ||
}); | ||
@@ -74,0 +77,0 @@ |
17075
259