mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
chore: section-prefix remaining tool paths in docs, examples, benchmarks, and multi-input test
This commit is contained in:
@@ -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, "\\$&");
|
||||
|
||||
Reference in New Issue
Block a user