We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42a3cfc commit 7537328Copy full SHA for 7537328
index.js
@@ -223,7 +223,7 @@ function getEndOfCentralDirectoryRecord(self) {
223
}
224
225
function validateMetadataPath(metadataPath, isDirectory) {
226
- if (metadataPath === "") throw new Erorr("empty metadataPath");
+ if (metadataPath === "") throw new Error("empty metadataPath");
227
if (metadataPath.indexOf("\\") !== -1) throw new Error("invalid characters in path: " + metadataPath);
228
if (/^[a-zA-Z]:/.test(metadataPath) || /^\//.test(metadataPath)) throw new Error("absolute path: " + metadataPath);
229
if (metadataPath.split("/").indexOf("..") !== -1) throw new Error("invalid relative path: " + metadataPath);
0 commit comments