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

@ -102,7 +102,7 @@ pub async fn update_title_request(
None => return Json(Error::NotAllowed.into()),
};
props.title = props.title.replace(" ", "_");
props.title = props.title.replace(" ", "_").to_lowercase();
// check name
let regex = regex::RegexBuilder::new(NAME_REGEX)