mirror of
https://github.com/saicaca/fuwari.git
synced 2026-01-11 23:02:53 +01:00
fix: fix errors and reformat code
This commit is contained in:
@@ -9,7 +9,7 @@ export function pathsEqual(path1: string, path2: string) {
|
||||
|
||||
function joinUrl(...parts: string[]): string {
|
||||
const joined = parts.join('/')
|
||||
return joined.replace(/\/+/g, '/');
|
||||
return joined.replace(/\/+/g, '/')
|
||||
}
|
||||
|
||||
export function getPostUrlBySlug(slug: string): string {
|
||||
@@ -32,4 +32,4 @@ export function getDir(path: string): string {
|
||||
|
||||
export function url(path: string) {
|
||||
return joinUrl('', import.meta.env.BASE_URL, path)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user