Steps To Reproduce:
1. In appc CLI do "appc new"
2. CLI will prompt to enter the module name you want to have.
3. Observe the name suggestion given below :
>> name must be of the format:
Actual Result:
1. The name suggestion shows random characters :
C:\Users\Steve Ballmer\Desktop>appc new
Appcelerator Command-Line Interface, version 4.1.0-4
Copyright (c) 2014-2015, Appcelerator, Inc. All Rights Reserved.
? What type of project are you creating?
? What type of project are you creating? Titanium Module
? What's the project name?
>> name must be of the format: /^[\w]{2,}[\w\.\d-_]+$/
Expected Result:
1. The name suggestion should not show random characters.
The suggested format is using a regular expression to tell you what the name must match. Not sure if we should expect our users to be aware enough of regular expressions to understand (they likely would), or if we should try and translate to something like: It must start with two letters or digits, followed by at least one of: letters, digits, periods, hyphens or underscores.
[~cwilliams], Yes a proper sentence like you suggested above will be good & we can include these characters at the end of the sentence. It looks better than just seeing these characters directly.
I think this issue is not specific to *titanium_mobile_windows* but more related to *appc-cli* or *appc-cli-titanium*. Should I escalate this to CLI team?
This is already fixed for now, right? Tested on "Ti CLI 5.1.0" on Windows 10 and the prompt returns "project name is invalid" message for me.
Closing ticket as fixed.