mirror of
https://github.com/tealdeer-rs/tealdeer.git
synced 2026-08-24 00:54:17 +02:00
Ensure that default custom_pages_dir ends with trailing slash
This commit is contained in:
parent
00ec281b9b
commit
6508ec6ac6
1 changed files with 4 additions and 1 deletions
|
|
@ -173,7 +173,10 @@ impl Default for RawDirectoriesConfig {
|
|||
fn default() -> Self {
|
||||
Self {
|
||||
custom_pages_dir: get_app_root(AppDataType::UserData, &crate::APP_INFO)
|
||||
.map(|path| path.join("pages"))
|
||||
.map(|path| {
|
||||
// Note: The `join("")` call ensures that there's a trailing slash
|
||||
path.join("pages").join("")
|
||||
})
|
||||
.ok(),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue