From 7ee7924eecf7b2f0456f43726e70758e28267409 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Wed, 17 Sep 2025 11:12:28 +0000 Subject: [PATCH] Auto-fix formatting issues --- bin/utils/name.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/bin/utils/name.ts b/bin/utils/name.ts index 1967162..519a87d 100644 --- a/bin/utils/name.ts +++ b/bin/utils/name.ts @@ -15,15 +15,17 @@ export function generateLinuxPackageName(name: string): string { } export function generateIdentifierSafeName(name: string): string { - const cleaned = name - .replace(/[^a-zA-Z0-9\u4e00-\u9fff]/g, '') - .toLowerCase(); + const cleaned = name.replace(/[^a-zA-Z0-9\u4e00-\u9fff]/g, '').toLowerCase(); if (cleaned === '') { const fallback = Array.from(name) - .map(char => { + .map((char) => { const code = char.charCodeAt(0); - if ((code >= 48 && code <= 57) || (code >= 65 && code <= 90) || (code >= 97 && code <= 122)) { + if ( + (code >= 48 && code <= 57) || + (code >= 65 && code <= 90) || + (code >= 97 && code <= 122) + ) { return char.toLowerCase(); } return code.toString(16);