Summary:
We've had these in our library names and they're quite useful as word
separators. Allowing them shouldn't cause any trouble.
Test Plan:
ran arc liberate in an empty directory, and it didn't complain when I gave
it a name with a hyphen.
Reviewers: epriestley, vrana, jungejason
Reviewed By: epriestley
CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D3070
echo "Choose a name for the new library.\n";
do {
$name = phutil_console_prompt('What do you want to name this library?');
- if (preg_match('/^[a-z]+$/', $name)) {
+ if (preg_match('/^[a-z-]+$/', $name)) {
break;
} else {
- echo "Library name should contain only lowercase letters.\n";
+ echo "Library name should contain only lowercase letters and ".
+ "hyphens.\n";
}
} while (true);