chore: section-prefix remaining tool paths in docs, examples, benchmarks, and multi-input test

This commit is contained in:
SnapOtter
2026-06-21 00:30:10 +08:00
parent 84247fd077
commit c1c66efd3f
56 changed files with 69 additions and 60 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ export type IdToSection = Record<string, string>;
// next char is "-"). ":" lets YAML path keys match (".../resize:"); the backtick
// lets backtick string literals match. ":toolId"/"{toolId}" placeholders never
// appear as real ids in the map, so parametric routes are left untouched.
const BOUNDARY = "(?=$|[/\"'`\\s?#:])";
const BOUNDARY = "(?=$|[/\"'`\\s?#:,)])";
function escapeRegExp(s: string): string {
return s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");