Skip to content

fix: escape pipes in glob paths#919

Open
NgoQuocViet2001 wants to merge 1 commit into
unplugin:mainfrom
NgoQuocViet2001:fix-pipe-glob-paths
Open

fix: escape pipes in glob paths#919
NgoQuocViet2001 wants to merge 1 commit into
unplugin:mainfrom
NgoQuocViet2001:fix-pipe-glob-paths

Conversation

@NgoQuocViet2001

Copy link
Copy Markdown

Description

Paths containing | are treated as alternation by picomatch, so directory-based component discovery misses files under paths such as /work/|presentation.

This escapes pipes when generating globs and adds a regression test for the matcher.

Follow-up to slidevjs/slidev#2668.

Tests

  • pnpm test --run
  • pnpm typecheck
  • pnpm build
  • pnpm exec eslint src/core/utils.ts test/utils.test.ts

@NgoQuocViet2001
NgoQuocViet2001 requested a review from antfu as a code owner July 14, 2026 13:16
@bolt-new-by-stackblitz

Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant