From 6aff66f501cb6b124bafc4158b1b56640481cf34 Mon Sep 17 00:00:00 2001 From: Sandy Tao Date: Wed, 20 Aug 2025 13:51:49 -0700 Subject: feat(core): Handle special characters in file search paths (#6680) --- packages/core/src/utils/filesearch/fileSearch.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'packages/core/src/utils/filesearch/fileSearch.ts') diff --git a/packages/core/src/utils/filesearch/fileSearch.ts b/packages/core/src/utils/filesearch/fileSearch.ts index fa36dab4..876d37f0 100644 --- a/packages/core/src/utils/filesearch/fileSearch.ts +++ b/packages/core/src/utils/filesearch/fileSearch.ts @@ -10,6 +10,7 @@ import { Ignore, loadIgnoreRules } from './ignore.js'; import { ResultCache } from './result-cache.js'; import { crawl } from './crawler.js'; import { AsyncFzf, FzfResultItem } from 'fzf'; +import { unescapePath } from '../paths.js'; export interface FileSearchOptions { projectRoot: string; @@ -116,7 +117,7 @@ class RecursiveFileSearch implements FileSearch { throw new Error('Engine not initialized. Call initialize() first.'); } - pattern = pattern || '*'; + pattern = unescapePath(pattern) || '*'; let filteredCandidates; const { files: candidates, isExactMatch } = -- cgit v1.2.3