chore: lint and fmt
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
export const filenameToNoteTitle = (title: string) =>
|
||||
title.replaceAll('/', ' / ').replaceAll('-', ' ')
|
||||
title.replaceAll("/", " / ").replaceAll("-", " ")
|
||||
|
||||
export const pathToNotePathTitle = (path: string) => {
|
||||
const fileNames = path.split('.')
|
||||
const fileNames = path.split(".")
|
||||
|
||||
fileNames.pop()
|
||||
return fileNames
|
||||
.join('.')
|
||||
.split('/')
|
||||
.filter((path) => !path.includes('README'))
|
||||
.join('/')
|
||||
.replaceAll('-', ' ')
|
||||
.join(".")
|
||||
.split("/")
|
||||
.filter((path) => !path.includes("README"))
|
||||
.join("/")
|
||||
.replaceAll("-", " ")
|
||||
}
|
||||
|
||||
export const pathToNoteTitle = (notePathTitle: string) => {
|
||||
return pathToNotePathTitle(notePathTitle).split('/').pop()?.trim() ?? ''
|
||||
return pathToNotePathTitle(notePathTitle).split("/").pop()?.trim() ?? ""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user