fix: grep failing when pattern started with a dash

This commit is contained in:
Haris Gušić
2025-10-31 23:20:22 +01:00
committed by GitHub
parent 3823d8d50e
commit af50596529
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -367,6 +367,7 @@ export namespace Ripgrep {
args.push(`--max-count=${input.limit}`)
}
args.push("--")
args.push(input.pattern)
const command = args.join(" ")