Browse Source

Trim "-" in filenames

pull/73/head v1.1.1
andreimarcu 9 years ago
parent
commit
9b1df43ef2
  1. 3
      upload.go

3
upload.go

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

Loading…
Cancel
Save