some more fixes

This commit is contained in:
pj committed 2026-10-03 22:48:49 +05:30
1 parent 7a3c04f170
commit 2b86a407ba
63 files changed
+12172 -44

No files matched your search

+1 -1
View File
@@ -60,7 +60,7 @@ pub(crate) fn library_dir(app: &tauri::AppHandle) -> Result<PathBuf, String> {
fn book_path(app: &tauri::AppHandle, id: &str) -> Result<PathBuf, String> {
if id.is_empty() || !id.chars().all(|c| c.is_ascii_alphanumeric() || c == '-' || c == '_') {
return Err("invalid book id".to_string());
return Err("invalid project id".to_string());
}
Ok(library_dir(app)?.join(format!("{id}.margin")))
}