mirror of
https://github.com/venera-app/venera.git
synced 2025-12-16 15:11:14 +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