From 856ff6715571c265b6acdf58fee9307e4af8e8bf Mon Sep 17 00:00:00 2001 From: geekvest Date: Sun, 3 Mar 2024 13:12:15 +0800 Subject: [PATCH] fix some comments Signed-off-by: geekvest --- bin/options/index.ts | 2 +- dist/cli.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/options/index.ts b/bin/options/index.ts index 26687bd..2bf78d5 100644 --- a/bin/options/index.ts +++ b/bin/options/index.ts @@ -38,7 +38,7 @@ export default async function handleOptions( if (!isValidName(name, platform)) { const LINUX_NAME_ERROR = `✕ name should only include lowercase letters, numbers, and dashes, and must contain at least one lowercase letter. Examples: com-123-xxx, 123pan, pan123, weread, we-read.`; - const DEFAULT_NAME_ERROR = `✕ Name should only include letters and numbers, and dashes (dashes must not at the begining), and must contain at least one letter. Examples: 123pan, 123Pan, Pan123, weread, WeRead, WERead, we-read.`; + const DEFAULT_NAME_ERROR = `✕ Name should only include letters and numbers, and dashes (dashes must not at the beginning), and must contain at least one letter. Examples: 123pan, 123Pan, Pan123, weread, WeRead, WERead, we-read.`; const errorMsg = platform === 'linux' ? LINUX_NAME_ERROR : DEFAULT_NAME_ERROR; logger.error(errorMsg); if (isActions) { diff --git a/dist/cli.js b/dist/cli.js index 3af0e63..3ecfa09 100644 --- a/dist/cli.js +++ b/dist/cli.js @@ -964,7 +964,7 @@ async function handleOptions(options, url) { } if (!isValidName(name, platform)) { const LINUX_NAME_ERROR = `✕ name should only include lowercase letters, numbers, and dashes, and must contain at least one lowercase letter. Examples: com-123-xxx, 123pan, pan123, weread, we-read.`; - const DEFAULT_NAME_ERROR = `✕ Name should only include letters and numbers, and dashes (dashes must not at the begining), and must contain at least one letter. Examples: 123pan, 123Pan, Pan123, weread, WeRead, WERead, we-read.`; + const DEFAULT_NAME_ERROR = `✕ Name should only include letters and numbers, and dashes (dashes must not at the beginning), and must contain at least one letter. Examples: 123pan, 123Pan, Pan123, weread, WeRead, WERead, we-read.`; const errorMsg = platform === 'linux' ? LINUX_NAME_ERROR : DEFAULT_NAME_ERROR; logger.error(errorMsg); if (isActions) {