chore: remove capturing group

pull/3233/head
Divyansh Singh 1 year ago
parent 57e3dcc923
commit 134ca6c661

@ -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))

Loading…
Cancel
Save