Added the possibility to have - and _ in the project name

This commit is contained in:
Mark Villacampa
2012-06-04 03:19:31 +02:00
parent 9775285534
commit 5e35c567a4

View File

@@ -77,7 +77,7 @@ module Motion; module Project
end
def create(app_name)
unless app_name.match(/^[a-zA-Z\d\s]+$/)
unless app_name.match(/^[\w\s-]+$/)
fail "Invalid app name"
end