From ec1ca128b8b4ee5b0d1d77a1dd18d40792173c27 Mon Sep 17 00:00:00 2001 From: Shinigami Date: Mon, 1 May 2023 11:20:12 +0200 Subject: chore: improve regex usage (#2108) --- 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 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); } -- cgit v1.2.3