From 4d5e818930b8ce415e8630924a74d0b39c91c567 Mon Sep 17 00:00:00 2001 From: Niklas Sombert Date: Thu, 1 Oct 2020 18:17:49 +0200 Subject: [PATCH] :sparkles: Support tar files wrapped with bzip2 --- README.md | 3 +++ lib/archive-editor.js | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/README.md b/README.md index 7b9cee9..eafeeff 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,9 @@ Adds support for browsing archive files in Atom with the following extensions: * `.tar` * `.tar.gz` * `.tgz` +* `.tar.bz2` +* `.tbz` +* `.tbz2` * `.war` * `.whl` * `.xpi` diff --git a/lib/archive-editor.js b/lib/archive-editor.js index 132575e..efbf8d3 100644 --- a/lib/archive-editor.js +++ b/lib/archive-editor.js @@ -52,6 +52,8 @@ function isPathSupported (filePath) { case '.nupkg': case '.tar': case '.tgz': + case '.tbz': + case '.tbz2': case '.war': case '.whl': case '.xpi': @@ -59,6 +61,8 @@ function isPathSupported (filePath) { return true case '.gz': return path.extname(path.basename(filePath, '.gz')) === '.tar' + case '.bz2': + return path.extname(path.basename(filePath, '.bz2')) === '.tar' default: return false }