mirror of
https://github.com/mihonapp/mihon.git
synced 2025-11-13 20:48:56 +01:00
Minor refactor
This commit is contained in:
@@ -36,7 +36,7 @@ object DiskUtil {
|
||||
* replacing any invalid characters with "_". This method doesn't allow private files (starting
|
||||
* with a dot), but you can manually add it later.
|
||||
*/
|
||||
fun buildValidFatFilename(origName: String): String {
|
||||
fun buildValidFilename(origName: String): String {
|
||||
val name = origName.trim('.', ' ')
|
||||
if (name.isNullOrEmpty()) {
|
||||
return "(invalid)"
|
||||
|
||||
Reference in New Issue
Block a user