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
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue