github.com/cloudfoundry-attic/cli-with-i18n@v6.32.1-0.20171002233121-7401370d3b85+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 }