mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
add clean symbols }{
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user