aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/custom-validators
diff options
context:
space:
mode:
Diffstat (limited to 'server/helpers/custom-validators')
-rw-r--r--server/helpers/custom-validators/plugins.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/helpers/custom-validators/plugins.ts b/server/helpers/custom-validators/plugins.ts
index 2e3175742..332418b49 100644
--- a/server/helpers/custom-validators/plugins.ts
+++ b/server/helpers/custom-validators/plugins.ts
@@ -20,7 +20,7 @@ function isPluginNameValid (value: string) {
20function isNpmPluginNameValid (value: string) { 20function isNpmPluginNameValid (value: string) {
21 return exists(value) && 21 return exists(value) &&
22 validator.isLength(value, PLUGINS_CONSTRAINTS_FIELDS.NAME) && 22 validator.isLength(value, PLUGINS_CONSTRAINTS_FIELDS.NAME) &&
23 validator.matches(value, /^[a-z\-]+$/) && 23 validator.matches(value, /^[a-z\-._0-9]+$/) &&
24 (value.startsWith('peertube-plugin-') || value.startsWith('peertube-theme-')) 24 (value.startsWith('peertube-plugin-') || value.startsWith('peertube-theme-'))
25} 25}
26 26