Skip to content

Commit 8cac383

Browse files
t3dotggclaude
andcommitted
fix(evals): test-signal grep accepts patterns that start with a dash
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent a98d177 commit 8cac383

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎evals/test-signal/run.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ const grepAt = (entry: Case, files: Map<string, string>, pattern: string, scope:
9999
// Served files also exist in this checkout, so git applies its own pathspec rules to the scope.
100100
const matched = new Set((git(["ls-files", "--", scope || "."]) ?? "").split("\n"));
101101
const inScope = (path: string) => matched.has(path);
102-
const fromRev = (git(["grep", "-n", "-E", pattern, entry.rev, "--", scope || "."]) ?? "")
102+
const fromRev = (git(["grep", "-n", "-E", "-e", pattern, entry.rev, "--", scope || "."]) ?? "")
103103
.split("\n")
104104
.filter((line) => line !== "")
105105
.map((line) => line.replace(`${entry.rev}:`, ""))

0 commit comments

Comments
 (0)