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
commit af50596529
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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(" ")