From 5c5b40606a9e037bdc43ed306d6895ed0ecf8ba6 Mon Sep 17 00:00:00 2001 From: Hezi-crypto <53297467+Hezi-crypto@users.noreply.github.com> Date: Thu, 31 Jul 2025 12:19:01 +0800 Subject: [PATCH] fix: remove https validation from plugin url fields (#270) --- .../component/file-import/plugin-info-confirm/utils.ts | 8 ++------ .../src/components/plugin-form-content/utils.tsx | 6 +----- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/frontend/packages/agent-ide/bot-plugin/export/src/component/file-import/plugin-info-confirm/utils.ts b/frontend/packages/agent-ide/bot-plugin/export/src/component/file-import/plugin-info-confirm/utils.ts index fa994f04..3e05ccae 100644 --- a/frontend/packages/agent-ide/bot-plugin/export/src/component/file-import/plugin-info-confirm/utils.ts +++ b/frontend/packages/agent-ide/bot-plugin/export/src/component/file-import/plugin-info-confirm/utils.ts @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - + +import { type UploadValue } from '@coze-common/biz-components'; import { I18n } from '@coze-arch/i18n'; import { safeJSONParse } from '@coze-arch/bot-utils'; import { type PluginMetaInfo } from '@coze-arch/bot-api/developer_api'; -import { type UploadValue } from '@coze-common/biz-components'; export const formRuleList = { name: [ @@ -51,10 +51,6 @@ export const formRuleList = { required: true, message: I18n.t('create_plugin_modal_url1_error'), }, - { - pattern: /^(https):\/\/.+$/, - message: I18n.t('create_plugin_modal_url_error_https'), - }, ], key: [ { diff --git a/frontend/packages/studio/plugin-form-adapter/src/components/plugin-form-content/utils.tsx b/frontend/packages/studio/plugin-form-adapter/src/components/plugin-form-content/utils.tsx index 3dc53a63..a63ec084 100644 --- a/frontend/packages/studio/plugin-form-adapter/src/components/plugin-form-content/utils.tsx +++ b/frontend/packages/studio/plugin-form-adapter/src/components/plugin-form-content/utils.tsx @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - + import { useEffect, useState } from 'react'; import { type PluginInfoProps } from '@coze-studio/plugin-shared'; @@ -66,10 +66,6 @@ export const formRuleList = { required: true, message: I18n.t('create_plugin_modal_url1_error'), }, - { - pattern: /^(https):\/\/.+$/, - message: I18n.t('create_plugin_modal_url_error_https'), - }, ], key: [ {