Skip to content

Commit b2b4aed

Browse files
authored
fix: escape dot in sed pattern for validator name extraction (#62)
The sed pattern 's/.json//' was incorrectly stripping '.json' from anywhere in the filename (e.g., 'is-my-json-valid.json' became 'is-my-valid.json'). Fixed by anchoring to end of string and escaping the dot: 's/\.json$//'
1 parent 2e9a2a5 commit b2b4aed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/update-benchmarks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ jobs:
110110
npx tsx benchmarks/update-svg.ts
111111
112112
# Generate detailed markdown reports for each validator that has results
113-
for v in $(ls benchmarks/results/*.json 2>/dev/null | xargs -n1 basename | sed 's/.json//' | grep -v tjs); do
113+
for v in $(ls benchmarks/results/*.json 2>/dev/null | xargs -n1 basename | sed 's/\.json$//' | grep -v tjs); do
114114
UPPER_NAME=$(echo "$v" | tr '[:lower:]-' '[:upper:]_')
115115
npx tsx benchmarks/generate-report.ts "$v" -o "benchmarks/results/BENCHMARK_${UPPER_NAME}.md"
116116
done

0 commit comments

Comments
 (0)