Trim "-" in filenames
This commit is contained in:
parent
0b37309237
commit
9b1df43ef2
|
@ -335,6 +335,9 @@ func barePlusExt(filename string) (barename, extension string) {
|
||||||
extension = barePlusRe.ReplaceAllString(extension, "")
|
extension = barePlusRe.ReplaceAllString(extension, "")
|
||||||
barename = barePlusRe.ReplaceAllString(barename, "")
|
barename = barePlusRe.ReplaceAllString(barename, "")
|
||||||
|
|
||||||
|
extension = strings.Trim(extension, "-")
|
||||||
|
barename = strings.Trim(barename, "-")
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue