diff options
| author | Shinigami <[email protected]> | 2023-05-01 11:20:12 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-05-01 09:20:12 +0000 |
| commit | ec1ca128b8b4ee5b0d1d77a1dd18d40792173c27 (patch) | |
| tree | 5406238150f1c96e18e23791c32b39415371d188 /scripts | |
| parent | a8dc7e07f6d5ee2ae38724ba5d503d7b88bd7147 (diff) | |
| download | faker-ec1ca128b8b4ee5b0d1d77a1dd18d40792173c27.tar.xz faker-ec1ca128b8b4ee5b0d1d77a1dd18d40792173c27.zip | |
chore: improve regex usage (#2108)
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/apidoc/signature.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/apidoc/signature.ts b/scripts/apidoc/signature.ts index 67101574..c3be50e5 100644 --- a/scripts/apidoc/signature.ts +++ b/scripts/apidoc/signature.ts @@ -212,7 +212,7 @@ function typeToText(type_?: Type, short = false): string { if ( (reflectionType?.type === 'literal' || reflectionType?.type === 'union') && - !type.name.match(/Char$/) + !/Char$/.test(type.name) ) { return typeToText(reflectionType, short); } |
