Trim "-" in filenames

This commit is contained in:
andreimarcu 2015-10-28 14:31:51 -04:00
parent 0b37309237
commit 9b1df43ef2
1 changed files with 3 additions and 0 deletions

View File

@ -335,6 +335,9 @@ func barePlusExt(filename string) (barename, extension string) {
extension = barePlusRe.ReplaceAllString(extension, "")
barename = barePlusRe.ReplaceAllString(barename, "")
extension = strings.Trim(extension, "-")
barename = strings.Trim(barename, "-")
return
}