fix: make journal and note titles lowercase add: remove journal index

route
This commit is contained in:
trisua 2025-06-19 16:34:08 -04:00
parent 1b1c1c0bea
commit eb5a0d146f
7 changed files with 85 additions and 7 deletions

View file

@ -84,7 +84,7 @@ impl DataManager {
return Err(Error::DataTooLong("title".to_string()));
}
data.title = data.title.replace(" ", "_");
data.title = data.title.replace(" ", "_").to_lowercase();
// check name
let regex = regex::RegexBuilder::new(NAME_REGEX)

View file

@ -83,7 +83,7 @@ impl DataManager {
return Err(Error::DataTooLong("content".to_string()));
}
data.title = data.title.replace(" ", "_");
data.title = data.title.replace(" ", "_").to_lowercase();
// check name
let regex = regex::RegexBuilder::new(NAME_REGEX)