diff options
| author | ST-DDT <[email protected]> | 2023-10-09 14:05:14 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-10-09 14:05:14 +0200 |
| commit | 66b7a14c5f97aca8de63e6039645c89cf9d08d06 (patch) | |
| tree | 7d68ba8a137ae98b6116b9b71c61748ad8e0c464 /scripts | |
| parent | 3e4952bdea7b3dc2768a3d6b20c4d6c04b5746d4 (diff) | |
| download | faker-66b7a14c5f97aca8de63e6039645c89cf9d08d06.tar.xz faker-66b7a14c5f97aca8de63e6039645c89cf9d08d06.zip | |
infra(unicorn): prefer-string-starts-ends-with (#2442)
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 113df911..b7c23842 100644 --- a/scripts/apidoc/signature.ts +++ b/scripts/apidoc/signature.ts @@ -213,7 +213,7 @@ async function typeToText(type_?: Type, short = false): Promise<string> { if ( (reflectionType?.type === 'literal' || reflectionType?.type === 'union') && - !/Char$/.test(type.name) + !type.name.endsWith('Char') ) { return typeToText(reflectionType, short); } |
