Skip to content

Commit

Permalink
chore: fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Jun 11, 2024
1 parent c0a6206 commit b2250b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/commands/analyze.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default defineCommand({

const cwd = resolve(ctx.args.cwd || ctx.args.rootDir || '.')
const name = ctx.args.name || 'default'
const slug = name.trim().replace(/[^a-z0-9_-]/gi, '_')
const slug = name.trim().replace(/[^\w-]/g, '_')

const startTime = Date.now()

Expand Down
2 changes: 1 addition & 1 deletion src/utils/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export async function createNuxtDevServer(

// https://regex101.com/r/7HkR5c/1
const RESTART_RE
= /^(nuxt\.config\.[a-z0-9]+|\.nuxtignore|\.nuxtrc|\.config\/nuxt(\.config)?\.[a-z0-9]+)$/
= /^(?:nuxt\.config\.[a-z0-9]+|\.nuxtignore|\.nuxtrc|\.config\/nuxt(?:\.config)?\.[a-z0-9]+)$/

class NuxtDevServer extends EventEmitter {
private _handler?: RequestListener
Expand Down

0 comments on commit b2250b5

Please sign in to comment.