mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix: path generation for search
This commit is contained in:
@@ -54,8 +54,9 @@ export function generatePath(items: readonly ApiItem[], version: string) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// eslint-disable-next-line prefer-named-capture-group
|
return path.includes('@discordjs/')
|
||||||
return path.replace(/@discordjs\/(.*)\/(.*)?/, `$1/${version}/$2`);
|
? path.replace(/@discordjs\/(.*)\/(.*)?/, `$1/${version}/$2`)
|
||||||
|
: path.replace(/(.*)\/(.*)?/, `$1/${version}/$2`);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function resolveDocComment(item: ApiDeclaredItem) {
|
export function resolveDocComment(item: ApiDeclaredItem) {
|
||||||
|
|||||||
Reference in New Issue
Block a user