mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-19 23:50:20 +08:00
allow dash and underscore characters to be used in an app 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