Skip to content

Commit

Permalink
Narrow regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Miller committed Oct 13, 2021
1 parent f57d25b commit 72924b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/manifest/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ func getImagesFromContainers(containers []corev1.Container) []string {
imgStringsToFilter = append(imgStringsToFilter, ":off")

// Looking for strings like 0.0.0.0:5332
regexToFilter = append(regexToFilter, ".*\\d*:\\d")
regexToFilter = append(regexToFilter, ".*\\d*\\.\\d*:\\d")

for _, container := range containers {
images = append(images, container.Image)
Expand Down

0 comments on commit 72924b2

Please sign in to comment.