Skip to content

Commit

Permalink
fix: md5 hash length
Browse files Browse the repository at this point in the history
  • Loading branch information
zce committed Nov 23, 2023
1 parent 788d8c9 commit 88af727
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/static.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ export const isValidatedStaticPath = (url: string): boolean => {
* @returns md5 hash of data
*/
const md5 = (data: string | Buffer): string => {
return createHash('md5').update(data).digest('hex').slice(0, 8)
// https://github.com/joshwiens/hash-perf
return createHash('md5').update(data).digest('hex')
}

/**
Expand Down

0 comments on commit 88af727

Please sign in to comment.