Răsfoiți Sursa

Update tar.js

Lutz Roeder 2 luni în urmă
părinte
comite
ff63505dd9
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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 ||