We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0d00dfb + fc89358 commit 46794caCopy full SHA for 46794ca
1 file changed
pkg/util/dockerfile/get.go
@@ -8,7 +8,7 @@ import (
8
"strings"
9
)
10
11
-var findExposePortsRegEx = regexp.MustCompile("$EXPOSE\\s(.*)^")
+var findExposePortsRegEx = regexp.MustCompile("^EXPOSE\\s(.*)$")
12
13
// GetPorts retrieves all the exported ports from a dockerfile
14
func GetPorts(filename string) ([]int, error) {
0 commit comments