From 66b7a14c5f97aca8de63e6039645c89cf9d08d06 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Mon, 9 Oct 2023 14:05:14 +0200 Subject: infra(unicorn): prefer-string-starts-ends-with (#2442) --- scripts/apidoc/signature.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') 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 { if ( (reflectionType?.type === 'literal' || reflectionType?.type === 'union') && - !/Char$/.test(type.name) + !type.name.endsWith('Char') ) { return typeToText(reflectionType, short); } -- cgit v1.2.3