We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31a4ba3 commit 7515d68Copy full SHA for 7515d68
src/file.ts
@@ -10,7 +10,7 @@ import { redLog, yellowLog } from './consoleColor';
10
const findSimilarFiles = (files: Map<string, Buffer>): string[][] => {
11
const contentComparer: Map<string, string[]> = new Map();
12
for (const [filename, content] of files.entries()) {
13
- const hash = createHash('md5').update(content.toString()).digest('hex');
+ const hash = createHash('sha256').update(content).digest('hex');
14
if (contentComparer.has(hash)) contentComparer.get(hash)!.push(filename);
15
else contentComparer.set(hash, [filename]);
16
}
0 commit comments