checking url is sha1 hash of len 40

Signed-off-by: npiyush97 <npiyush35@gmail.com>
This commit is contained in:
npiyush97
2024-04-16 15:09:22 +05:30
parent d779e3b055
commit 7c1540d46e
@@ -53,7 +53,7 @@ export class AnnotateLocationEntityProcessor implements CatalogProcessor {
let viewUrl;
let editUrl;
let sourceLocation;
const gitCommitBranchURLPattern = /\b[0-9a-f]{5,40}\b/;
const gitCommitBranchURLPattern = /\b[0-9a-f]{40,}\b/;
if (location.type === 'url') {
const scmIntegration = integrations.byUrl(location.target);