Skip to content

Commit fcf59b0

Browse files
fix: allow dot name (#1024)
* allow dot name * Create giant-years-flash.md
1 parent 312bb30 commit fcf59b0

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/giant-years-flash.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"create-t3-app": patch
3+
---
4+
5+
fix: allow dot name in name prompt

cli/src/utils/validateAppName.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const validateAppName = (input: string) => {
1313
appName = paths.slice(indexOfDelimiter).join("/");
1414
}
1515

16-
if (validationRegExp.test(appName ?? "")) {
16+
if (input === "." || validationRegExp.test(appName ?? "")) {
1717
return true;
1818
} else {
1919
return "App name must consist of only lowercase alphanumeric characters, '-', and '_'";

0 commit comments

Comments
 (0)