u
This commit is contained in:
@@ -202,7 +202,8 @@ function docsFileFor(apiPath, method) {
|
||||
|
||||
const cleaned = apiPath
|
||||
.replace(/^\//, '')
|
||||
.replace(/\{([^}]+)\}/g, ':$1');
|
||||
.replace(/\{([^}]+)\}/g, '_$1')
|
||||
.replace(/:([a-zA-Z0-9_]+)/g, '_$1');
|
||||
const segments = cleaned.split('/').filter(Boolean);
|
||||
if (segments.length === 0) return `${method}.md`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user