Skip to content

Commit

Permalink
fix(timeline): filter logic
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jul 20, 2023
1 parent 72c877b commit 414ad1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/devtools/src/integrations/timeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ export async function setup({ nuxt, options }: NuxtDevtoolsServerContext) {
if (item.type)
return false
const name = item.as || item.name
if (!include.some(f => typeof f === 'function' ? f(item) : typeof f === 'string' ? name.includes(f) : f.test(name)))
if (!include.some(f => typeof f === 'function' ? f(item) : typeof f === 'string' ? name === f : f.test(name)))
return false
if (exclude.some(f => typeof f === 'function' ? f(item) : typeof f === 'string' ? name.includes(f) : f.test(name)))
if (exclude.some(f => typeof f === 'function' ? f(item) : typeof f === 'string' ? name === f : f.test(name)))
return false
return true
}
Expand Down

0 comments on commit 414ad1c

Please sign in to comment.