fixed gitlab regex

This commit is contained in:
Ankush Goel 2024-08-27 07:18:20 +00:00
parent 247b56ad0b
commit 1a7cf99740

View file

@ -32,7 +32,7 @@ func (Scanner) DefaultEndpoint() string { return "https://gitlab.com" }
var (
defaultClient = common.SaneHttpClient()
keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"gitlab"}) + `\b([a-zA-Z0-9\-=_]{20,22})\b`)
keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"gitlab"}) + `\b([a-zA-Z0-9\-_]{20,22})\b`)
)
// Keywords are used for efficiently pre-filtering chunks.