aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorST-DDT <[email protected]>2023-10-09 14:05:14 +0200
committerGitHub <[email protected]>2023-10-09 14:05:14 +0200
commit66b7a14c5f97aca8de63e6039645c89cf9d08d06 (patch)
tree7d68ba8a137ae98b6116b9b71c61748ad8e0c464 /scripts
parent3e4952bdea7b3dc2768a3d6b20c4d6c04b5746d4 (diff)
downloadfaker-66b7a14c5f97aca8de63e6039645c89cf9d08d06.tar.xz
faker-66b7a14c5f97aca8de63e6039645c89cf9d08d06.zip
infra(unicorn): prefer-string-starts-ends-with (#2442)
Diffstat (limited to 'scripts')
-rw-r--r--scripts/apidoc/signature.ts2
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);
}