From 80a68b84c2db1d05bab20f85dbb6cd0830adb5af Mon Sep 17 00:00:00 2001 From: ahrav Date: Wed, 1 Feb 2023 18:37:51 -0800 Subject: [PATCH] update webex detector regex (#1062) * update webex detector regex. * fix regex. --- pkg/detectors/webex/webex.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/detectors/webex/webex.go b/pkg/detectors/webex/webex.go index 7067e1ebe..aecd20cb8 100644 --- a/pkg/detectors/webex/webex.go +++ b/pkg/detectors/webex/webex.go @@ -19,8 +19,8 @@ type Scanner struct{} var _ detectors.Detector = (*Scanner)(nil) var ( - keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"webex"}) + `\b([A-Za-z0-9_-]{64})\b`) - idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"webex"}) + `\b([A-Za-z0-9_-]{65})\b`) + keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"webex"}) + `\b([a-f0-9]{64})\b`) + idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"webex"}) + `\b(C[a-f0-9]{64})\b`) ) // Keywords are used for efficiently pre-filtering chunks.