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 Aug 13, 2022
1 parent c262064 commit c3bd3c8
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 @@ -30,11 +30,11 @@ export function processModuleMethods(
/**
* 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: TypeDoc.DeclarationReflection): PageIndex {
const moduleName = module.name.replace('_', '');
const moduleName = module.name.replace(/Module$/, '').replace('_', '');
const lowerModuleName =
moduleName.substring(0, 1).toLowerCase() + moduleName.substring(1);
if (faker[lowerModuleName] === undefined) {
Expand Down

0 comments on commit c3bd3c8

Please sign in to comment.