mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-06-13 09:35:28 +08:00
Added the possibility to have - and _ in the project name
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user