From 134ca6c661a80b61f6766eaa69a2b4ded78cd43b Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Sat, 18 Nov 2023 22:35:07 +0530 Subject: [PATCH] chore: remove capturing group --- src/node/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/config.ts b/src/node/config.ts index 8484b76a..24552e1e 100644 --- a/src/node/config.ts +++ b/src/node/config.ts @@ -74,7 +74,7 @@ export async function resolveConfig( const site = await resolveSiteData(root, userConfig) const srcDir = normalizePath(path.resolve(root, userConfig.srcDir || '.')) const assetsDir = userConfig.assetsDir - ? userConfig.assetsDir.replace(/(^\.?\/|\/$)/g, '') + ? userConfig.assetsDir.replace(/^\.?\/|\/$/g, '') : 'assets' const outDir = userConfig.outDir ? normalizePath(path.resolve(root, userConfig.outDir))