chore: fix whitespace

This commit is contained in:
Daniel Roe 2023-10-16 22:26:42 +01:00
parent 536c276252
commit 28a38a8d7f

View File

@ -8,7 +8,7 @@ export function getNameFromPath (path: string, relativeTo?: string) {
: basename(path) : basename(path)
const prefixParts = splitByCase(dirname(relativePath)) const prefixParts = splitByCase(dirname(relativePath))
const fileName = basename(relativePath, extname(relativePath)) const fileName = basename(relativePath, extname(relativePath))
return kebabCase(resolveComponentName(fileName.toLowerCase() === 'index' ? '' : fileName, prefixParts)).replace(/["']/g, '') return kebabCase(resolveComponentName(fileName.toLowerCase() === 'index' ? '' : fileName, prefixParts)).replace(/["']/g, '')
} }
export function hasSuffix (path: string, suffix: string) { export function hasSuffix (path: string, suffix: string) {