add clean symbols }{

This commit is contained in:
YouROK
2020-09-10 08:58:05 +03:00
committed by GitHub
parent 82ab7144a9
commit 76ad8f6ade

View File

@@ -10,7 +10,7 @@ import (
) )
func CleanFName(file string) string { func CleanFName(file string) string {
re := regexp.MustCompile(`[ !*'();:@&=+$,/?#\[\]~"]`) re := regexp.MustCompile(`[ !*'();:@&=+$,/?#\[\]~"]{}`)
ret := re.ReplaceAllString(file, `_`) ret := re.ReplaceAllString(file, `_`)
ret = strings.Replace(ret, "__", "_", -1) ret = strings.Replace(ret, "__", "_", -1)
return ret return ret