fix: make journal and note titles lowercase add: remove journal index
route
This commit is contained in:
parent
1b1c1c0bea
commit
eb5a0d146f
7 changed files with 85 additions and 7 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue