We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a5aff3 commit 35b3ba7Copy full SHA for 35b3ba7
.gitignore
@@ -1,6 +1,7 @@
1
.DS_Store
2
.env
3
.env.*
4
+**/.idea
5
Thumbs.db
6
compiler/target/
7
compiler/pkg/
commands/init.ts
@@ -34,6 +34,11 @@ export default async function (
34
return
35
}
36
37
+ if (!/^(@[a-z0-9-~][a-z0-9-._~]*\/)?[a-z0-9-~][a-z0-9-._~]*$/.test(name)) {
38
+ console.error(`Invalid project name: ${red(name)}`)
39
+ return
40
+ }
41
+
42
const hasTemplate = await util.isUrlOk('https://api.github.com/repos/alephjs/alephjs-templates/contents/' + template)
43
44
if (!hasTemplate) {
0 commit comments