Skip to content

Commit

Permalink
docs: fix api-docs script
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 committed Sep 7, 2022
1 parent 5c3d2a4 commit e190ac7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/apidoc/moduleMethods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export function processModuleMethods(project: ProjectReflection): PageIndex {
}

export function extractModuleName(module: DeclarationReflection): string {
return module.name.replace('_', '');
return module.name.replace(/Module$/, '');
}

function extractModuleFieldName(module: DeclarationReflection): string {
Expand All @@ -50,7 +50,7 @@ function extractModuleFieldName(module: DeclarationReflection): string {
/**
* Analyzes and writes the documentation for a module and its methods such as `faker.animal.cat()`.
*
* @param direct The module to process.
* @param module The module to process.
* @returns The generated pages.
*/
function processModuleMethod(module: DeclarationReflection): PageIndex {
Expand Down

0 comments on commit e190ac7

Please sign in to comment.