generator-razor 14.0.47 → 14.0.49
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
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',
|
|
@@ -156,10 +156,6 @@ RewriteRule .* browser-support.html [L]
|
|
|
156
156
|
|
|
157
157
|
### Begin: Compression ###
|
|
158
158
|
|
|
159
|
-
<IfModule http2_module>
|
|
160
|
-
Protocols h2 http/1.1
|
|
161
|
-
</IfModule>
|
|
162
|
-
|
|
163
159
|
# Optional: enable pre-compressed asset delivery
|
|
164
160
|
AddEncoding gzip .gz
|
|
165
161
|
AddType "text/javascript" .js.gz
|
|
@@ -156,10 +156,6 @@ RewriteRule .* browser-support.html [L]
|
|
|
156
156
|
|
|
157
157
|
### Begin: Compression ###
|
|
158
158
|
|
|
159
|
-
<IfModule http2_module>
|
|
160
|
-
Protocols h2 http/1.1
|
|
161
|
-
</IfModule>
|
|
162
|
-
|
|
163
159
|
# Optional: enable pre-compressed asset delivery
|
|
164
160
|
AddEncoding gzip .gz
|
|
165
161
|
AddType "text/javascript" .js.gz
|