Skip to content

Commit b84a015

Browse files
authored
Merge pull request #349 from LoopPerfect/bugfix/quickstart-app
* Removes app as a valid name
2 parents 2b63d9b + da1255d commit b84a015

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

buckaroo/QuickstartCommand.fs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ let private defaultMain =
6666
|> String.concat "\n"
6767

6868
let isValidProjectName (candidate : string) =
69-
(Regex(@"^[A-Za-z0-9\-_]{2,32}$")).IsMatch(candidate)
69+
(Regex(@"^[A-Za-z0-9\-_]{2,32}$")).IsMatch(candidate) &&
70+
candidate.ToLower () <> "app"
7071

7172
let requestProjectName (context : TaskContext) = async {
7273
let mutable candidate = ""

0 commit comments

Comments
 (0)