im already so bored of this
This commit is contained in:
parent
ceb73b4e92
commit
c89e0cd4c0
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue