Skip to content

Commit c882cef

Browse files
eltociearyusukebe
andauthored
refactor(ssg): update utils.ts (#2519)
* refactor(ssg): update utils.ts splitedPath -> splittedPath * denoify --------- Co-authored-by: Yusuke Wada <[email protected]>
1 parent 5c9d8b4 commit c882cef

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

deno_dist/helper/ssg/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import { findTargetHandler, isMiddleware } from '../../utils/handler.ts'
99
* @returns Parent dir path
1010
*/
1111
export const dirname = (path: string) => {
12-
const splitedPath = path.split(/[\/\\]/)
13-
return splitedPath.slice(0, -1).join('/') // Windows supports slash path
12+
const splittedPath = path.split(/[\/\\]/)
13+
return splittedPath.slice(0, -1).join('/') // Windows supports slash path
1414
}
1515

1616
const normalizePath = (path: string) => {

src/helper/ssg/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import { findTargetHandler, isMiddleware } from '../../utils/handler'
99
* @returns Parent dir path
1010
*/
1111
export const dirname = (path: string) => {
12-
const splitedPath = path.split(/[\/\\]/)
13-
return splitedPath.slice(0, -1).join('/') // Windows supports slash path
12+
const splittedPath = path.split(/[\/\\]/)
13+
return splittedPath.slice(0, -1).join('/') // Windows supports slash path
1414
}
1515

1616
const normalizePath = (path: string) => {

0 commit comments

Comments
 (0)