generator-razor 14.0.47 → 14.0.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/index.js +2 -2
- package/package.json +1 -1
package/app/index.js
CHANGED
|
@@ -102,11 +102,11 @@ export default class extends Generator {
|
|
|
102
102
|
message: 'New database name? A new database, username and password will be created.',
|
|
103
103
|
default: 'newproject',
|
|
104
104
|
validate: value => {
|
|
105
|
-
if (/^[a-zA-Z0-9_]+$/.test(value)) {
|
|
105
|
+
if (/^[a-zA-Z0-9_-]+$/.test(value)) {
|
|
106
106
|
return true
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
return 'Use only letters, numbers and
|
|
109
|
+
return 'Use only letters, numbers, underscores and hyphens.'
|
|
110
110
|
}
|
|
111
111
|
}, {
|
|
112
112
|
type: 'input',
|