checking url is sha1 hash of len 40
Signed-off-by: npiyush97 <npiyush35@gmail.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user