mirror of
https://github.com/Shabinder/SpotiFlyer.git
synced 2024-11-24 18:04:33 +01:00
Updated Removal of Illegal char fun.(Bug-Fixed)
This commit is contained in:
parent
b62143392c
commit
3df41fbe87
@ -166,13 +166,20 @@ object DownloadHelper {
|
||||
'\"',
|
||||
'.',
|
||||
':',
|
||||
'-'
|
||||
'-',
|
||||
'\''
|
||||
)
|
||||
|
||||
var name = fileName
|
||||
for (c in illegalCharArray) {
|
||||
name = fileName.replace(c, '_')
|
||||
}
|
||||
name = name.replace("\\s".toRegex(), "_")
|
||||
name = name.replace("\\)".toRegex(), "")
|
||||
name = name.replace("\\(".toRegex(), "")
|
||||
name = name.replace("\\[".toRegex(), "")
|
||||
name = name.replace("]".toRegex(), "")
|
||||
name = name.replace("\\.".toRegex(), "")
|
||||
return name
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user