From c89e0cd4c07726acc509c7cfe6307d1403b13168 Mon Sep 17 00:00:00 2001 From: Al Beano Date: Tue, 30 May 2017 19:04:18 +0100 Subject: [PATCH] im already so bored of this --- platform/windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/windows.go b/platform/windows.go index 43c9def..c9dc5d1 100644 --- a/platform/windows.go +++ b/platform/windows.go @@ -17,7 +17,7 @@ func SanitiseFilename(filename string) (newName string, e error) { } func DirOf(filename string) (dirname string, e error) { - r, e := regexp.Compile(`[^\\]+$`) + r, e := regexp.Compile(`\\[^\\]+$`) if e != nil { return }