Skip to content

Commit 94a1653

Browse files
NikhilPanwarrgmz
andauthored
Update rabbitmq.go regex detect amqps protocol (#2609)
* Update rabbitmq.go regex detect amqps protocol Old one couldn't detect amqps:// connection string, and only the amqp:// * [Revised] Update rabbitmq.go regex detect amqps protocol Co-authored-by: Richard Gomez <[email protected]> --------- Co-authored-by: Richard Gomez <[email protected]>
1 parent d92289d commit 94a1653

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/detectors/rabbitmq/rabbitmq.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ type Scanner struct{}
1919
var _ detectors.Detector = (*Scanner)(nil)
2020

2121
var (
22-
keyPat = regexp.MustCompile(`\b(?:amqp:)?\/\/[\S]{3,50}:([\S]{3,50})@[-.%\w\/:]+\b`)
22+
keyPat = regexp.MustCompile(`\b(?:amqps?):\/\/[\S]{3,50}:([\S]{3,50})@[-.%\w\/:]+\b`)
2323
)
2424

2525
// Keywords are used for efficiently pre-filtering chunks.

0 commit comments

Comments
 (0)