MCPcopy
hub / github.com/cloudfoundry/cli / ConvertPathToRegularExpression

Function ConvertPathToRegularExpression

integration/helpers/file.go:13–15  ·  view source on GitHub ↗

ConvertPathToRegularExpression converts a windows file path into a string which may be embedded in a ginkgo-compatible regular expression.

(path string)

Source from the content-addressed store, hash-verified

11// ConvertPathToRegularExpression converts a windows file path into a
12// string which may be embedded in a ginkgo-compatible regular expression.
13func ConvertPathToRegularExpression(path string) string {
14 return strings.Replace(path, "\\", "\\\\", -1)
15}
16
17// TempFileWithContent writes a temp file with given content and return the
18// file name.

Calls

no outgoing calls

Tested by

no test coverage detected