ActivityPub-federated video streaming platform using P2P directly in your web browser
Accept . _ and 0-9 plugin names
Chocobozzzc10b638c4b52
diff --git a/server/helpers/custom-validators/plugins.ts b/server/helpers/custom-validators/plugins.tsindex 2e31757423..332418b49c 100644--- a/server/helpers/custom-validators/plugins.ts+++ b/server/helpers/custom-validators/plugins.ts@@ -20,7 +20,7 @@ function isPluginNameValid (value: string) {function isNpmPluginNameValid (value: string) {return exists(value) &&validator.isLength(value, PLUGINS_CONSTRAINTS_FIELDS.NAME) &&- validator.matches(value, /^[a-z\-]+$/) &&+ validator.matches(value, /^[a-z\-._0-9]+$/) &&(value.startsWith('peertube-plugin-') || value.startsWith('peertube-theme-'))}