github.com/loggregator/cli@v6.33.1-0.20180224010324-82334f081791+incompatible/integration/helpers/file.go (about) 1 package helpers 2 3 import "strings" 4 5 // ConvertPathToRegularExpression converts a windows file path into a 6 // string which may be embedded in a ginkgo-compatible regular expression. 7 func ConvertPathToRegularExpression(path string) string { 8 return strings.Replace(path, "\\", "\\\\", -1) 9 }