allow dash and underscore characters to be used in an app name

This commit is contained in:
Laurent Sansonetti
2012-06-07 13:42:12 +02:00
parent 65a5c07cb6
commit 8ffadc83fc

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