fix: 编辑插件author不允许出现符号

This commit is contained in:
xiaojunnuo
2026-01-20 11:18:10 +08:00
parent 5bfc2c4a9b
commit 5ea2b09dc3
3 changed files with 6 additions and 4 deletions
@@ -228,7 +228,7 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat
rules: [
{ required: true },
{
type: "regexp",
type: "pattern",
pattern: /^[a-zA-Z][a-zA-Z0-9]+$/,
message: t("certd.pluginNameRuleMsg"),
},
@@ -257,7 +257,7 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat
rules: [
{ required: true },
{
type: "regexp",
type: "pattern",
pattern: /^[a-zA-Z][a-zA-Z0-9]+$/,
message: t("certd.authorRuleMsg"),
},
@@ -286,6 +286,8 @@ export class PluginService extends BaseService<PluginEntity> {
dnsProviderRegistry.unRegister(name)
} else if (item.pluginType === "notification") {
notificationRegistry.unRegister(name)
}else if (item.pluginType === "addon") {
addonRegistry.unRegister(name)
} else {
logger.warn(`不支持的插件类型:${item.pluginType}`)
}