Skip to content

Commit

Permalink
Docs: Fix reference to "validateFilenames" (#40)
Browse files Browse the repository at this point in the history
`yauzl.validateFilenames` was incorrectly documented as
`yauzl.validateFileNames`.
  • Loading branch information
EvanHahn authored Feb 7, 2024
1 parent e52bded commit 82b23c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ const date = yauzl.dosDateTimeToDate(entry.lastModDate, entry.lastModTime);

NB: Original `yauzl` interpreted dates according to local timezone. UTC is used here instead to ensure consistent result when unzipping the same ZIP anywhere.

#### `validateFileName(filename)`
#### `validateFilename(filename)`

Checks filename is not absolute or relative path, and does not contain backslashes (`\`). Throws an error if it does.

Expand Down

0 comments on commit 82b23c2

Please sign in to comment.