Skip to content

Commit 7537328

Browse files
committed
Typo in index.js
Fix a typo in index.js.
1 parent 42a3cfc commit 7537328

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ function getEndOfCentralDirectoryRecord(self) {
223223
}
224224

225225
function validateMetadataPath(metadataPath, isDirectory) {
226-
if (metadataPath === "") throw new Erorr("empty metadataPath");
226+
if (metadataPath === "") throw new Error("empty metadataPath");
227227
if (metadataPath.indexOf("\\") !== -1) throw new Error("invalid characters in path: " + metadataPath);
228228
if (/^[a-zA-Z]:/.test(metadataPath) || /^\//.test(metadataPath)) throw new Error("absolute path: " + metadataPath);
229229
if (metadataPath.split("/").indexOf("..") !== -1) throw new Error("invalid relative path: " + metadataPath);

0 commit comments

Comments
 (0)