mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
fix: handle case-insensitive path comparison on macOS in glob tool
This commit is contained in:
@@ -135,7 +135,9 @@ class GlobToolInvocation extends BaseToolInvocation<
|
|||||||
);
|
);
|
||||||
|
|
||||||
const normalizePathForComparison = (p: string) =>
|
const normalizePathForComparison = (p: string) =>
|
||||||
process.platform === 'win32' ? p.toLowerCase() : p;
|
process.platform === 'win32' || process.platform === 'darwin'
|
||||||
|
? p.toLowerCase()
|
||||||
|
: p;
|
||||||
|
|
||||||
const filteredAbsolutePaths = new Set(
|
const filteredAbsolutePaths = new Set(
|
||||||
filteredPaths.map((p) =>
|
filteredPaths.map((p) =>
|
||||||
|
|||||||
Reference in New Issue
Block a user