Skip to content

Commit a0452a0

Browse files
committed
✨ Supports numeric naming
1 parent 69d6066 commit a0452a0

File tree

2 files changed

+246
-205
lines changed

2 files changed

+246
-205
lines changed

bin/options/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ export default async function handleOptions(
3737
}
3838

3939
if (!isValidName(name, platform)) {
40-
const LINUX_NAME_ERROR = `✕ Name should only include lowercase letters, numbers, and dashes (not leading dashes), and must contain at least one lowercase letter or number. Examples: com-123-xxx, 123pan, pan123, weread, we-read.`;
41-
const DEFAULT_NAME_ERROR = `✕ Name should only include letters, numbers, dashes, and spaces (not leading dashes and spaces), and must contain at least one letter or number. Examples: 123pan, 123Pan, Pan123, weread, WeRead, WERead, we-read, We Read.`;
40+
const LINUX_NAME_ERROR = `✕ Name should only include lowercase letters, numbers, and dashes (not leading dashes). Examples: com-123-xxx, 123pan, pan123, weread, we-read, 123.`;
41+
const DEFAULT_NAME_ERROR = `✕ Name should only include letters, numbers, dashes, and spaces (not leading dashes and spaces). Examples: 123pan, 123Pan, Pan123, weread, WeRead, WERead, we-read, We Read, 123.`;
4242
const errorMsg =
4343
platform === 'linux' ? LINUX_NAME_ERROR : DEFAULT_NAME_ERROR;
4444
logger.error(errorMsg);

0 commit comments

Comments
 (0)