mirror of
https://github.com/discordjs/discord.js.git
synced 2024-08-21 12:44:43 +12:00
fix: path generation for search
This commit is contained in:
parent
4a5e9fc1de
commit
e5f3f3130e
1 changed files with 3 additions and 2 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue