Skip to content

Commit

Permalink
chore: remove capturing group
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd committed Nov 18, 2023
1 parent 57e3dcc commit 134ca6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 134ca6c

Please sign in to comment.