mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 15:57:25 +00:00
cbz import & export
This commit is contained in:
@@ -73,6 +73,9 @@ extension DirectoryExtension on Directory {
|
||||
}
|
||||
|
||||
String sanitizeFileName(String fileName) {
|
||||
if(fileName.endsWith('.')) {
|
||||
fileName = fileName.substring(0, fileName.length - 1);
|
||||
}
|
||||
const maxLength = 255;
|
||||
final invalidChars = RegExp(r'[<>:"/\\|?*]');
|
||||
final sanitizedFileName = fileName.replaceAll(invalidChars, ' ');
|
||||
|
Reference in New Issue
Block a user