瀏覽代碼

Update tar.js

Lutz Roeder 2 月之前
父節點
當前提交
ff63505dd9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      source/tar.js

+ 1 - 1
source/tar.js

@@ -21,7 +21,7 @@ tar.Archive = class {
         const position = stream.position;
         while (stream.position < stream.length) {
             const entry = new tar.Entry(stream);
-            if (entry.type === '0' || entry.type === '1' || entry.type === '2') {
+            if (entry.type === '' || entry.type === '0' || entry.type === '1' || entry.type === '2') {
                 this._entries.set(entry.name, entry.stream);
             }
             if (stream.position + 512 > stream.length ||