diff options
| author | ST-DDT <[email protected]> | 2023-04-28 15:23:50 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-04-28 13:23:50 +0000 |
| commit | 3cfeb3814703d12a9e95ed684fc2c8f94d1f2c72 (patch) | |
| tree | 0c9f4148244bfd02d9131132366ff59a8b941673 /scripts/apidoc/utils.ts | |
| parent | 971f36371bf924b334cb7766fd87afa7b484119a (diff) | |
| download | faker-3cfeb3814703d12a9e95ed684fc2c8f94d1f2c72.tar.xz faker-3cfeb3814703d12a9e95ed684fc2c8f94d1f2c72.zip | |
docs: fix full url to absolute conversion (#2101)
Diffstat (limited to 'scripts/apidoc/utils.ts')
| -rw-r--r-- | scripts/apidoc/utils.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/apidoc/utils.ts b/scripts/apidoc/utils.ts index 79e47507..8a002f49 100644 --- a/scripts/apidoc/utils.ts +++ b/scripts/apidoc/utils.ts @@ -43,6 +43,10 @@ export const pathOutputDir = resolve(pathDocsDir, 'api'); // Functions +export function adjustUrls(description: string): string { + return description.replace(/https:\/\/(next.)?fakerjs.dev\//g, '/'); +} + export function mapByName<T extends { name: string }, V>( input: T[], valueExtractor: (item: T) => V |
