Skip to content

Commit

Permalink
feat: add isBitbucketPath() to check if the path is from Bitbucket.
Browse files Browse the repository at this point in the history
  • Loading branch information
adelkahomolova committed Sep 19, 2019
1 parent 69a922a commit a958164
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/detectors/utils/ScanningStrategyDetectorUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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); // || ...
}
Expand Down

0 comments on commit a958164

Please sign in to comment.