From 28a38a8d7f573f69fd18b0602e6988c532623c13 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 16 Oct 2023 22:26:42 +0100 Subject: [PATCH] chore: fix whitespace --- packages/nuxt/src/core/utils/names.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nuxt/src/core/utils/names.ts b/packages/nuxt/src/core/utils/names.ts index 2456c88a84..abead3684d 100644 --- a/packages/nuxt/src/core/utils/names.ts +++ b/packages/nuxt/src/core/utils/names.ts @@ -8,7 +8,7 @@ export function getNameFromPath (path: string, relativeTo?: string) { : basename(path) const prefixParts = splitByCase(dirname(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) {