mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 08:03:30 +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.replace(/@discordjs\/(.*)\/(.*)?/, `$1/${version}/$2`);
|
||||
return path.includes('@discordjs/')
|
||||
? path.replace(/@discordjs\/(.*)\/(.*)?/, `$1/${version}/$2`)
|
||||
: path.replace(/(.*)\/(.*)?/, `$1/${version}/$2`);
|
||||
}
|
||||
|
||||
export function resolveDocComment(item: ApiDeclaredItem) {
|
||||
|
||||
Reference in New Issue
Block a user