From a958164addf8a2bd46fa9fb15b21d3b7a860af8a Mon Sep 17 00:00:00 2001 From: Adela Homolova Date: Thu, 19 Sep 2019 15:38:30 +0200 Subject: [PATCH] feat: add isBitbucketPath() to check if the path is from Bitbucket. --- src/detectors/utils/ScanningStrategyDetectorUtils.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/detectors/utils/ScanningStrategyDetectorUtils.ts b/src/detectors/utils/ScanningStrategyDetectorUtils.ts index 1da19cbb5..d3d21b2d0 100644 --- a/src/detectors/utils/ScanningStrategyDetectorUtils.ts +++ b/src/detectors/utils/ScanningStrategyDetectorUtils.ts @@ -7,6 +7,10 @@ export class ScanningStrategyDetectorUtils { return this.testPath(path, /github\.com/); } + static isBitbucketPath(path: string): boolean { + return this.testPath(path, /bitbucket\.com/); + } + static isRemoteServicePath(path: string): boolean { return this.isGitHubPath(path); // || ... }