Skip to content

Commit 04ed744

Browse files
authored
Merge pull request piceaTech#215 from mschoettle/fix-diff-anchor
Change hash function for diff anchor to sha256
2 parents b3d34e3 + cb4cde1 commit 04ed744

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/githubHelper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1382,7 +1382,7 @@ export class GithubHelper {
13821382
line = position.old_line;
13831383
}
13841384
const crypto = require('crypto');
1385-
const hash = crypto.createHash('md5').update(path).digest('hex');
1385+
const hash = crypto.createHash('sha256').update(path).digest('hex');
13861386
slug = `#diff-${hash}${side}${line}`;
13871387
}
13881388
// Mention the file and line number. If we can't get this for some reason then use the commit id instead.

0 commit comments

Comments
 (0)