This commit is contained in:
Al Beano 2017-05-30 19:02:09 +01:00
parent 80a07f768d
commit ceb73b4e92
1 changed files with 1 additions and 1 deletions

View File

@ -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
}