github.com/liamawhite/cli-with-i18n@v6.32.1-0.20171122084555-dede0a5c3448+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  }