fix: remove https validation from plugin url fields (#270)

This commit is contained in:
Hezi-crypto 2025-07-31 12:19:01 +08:00 committed by GitHub
parent 977f2c423a
commit 5c5b40606a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 11 deletions

View File

@ -14,10 +14,10 @@
* limitations under the License. * limitations under the License.
*/ */
import { type UploadValue } from '@coze-common/biz-components';
import { I18n } from '@coze-arch/i18n'; import { I18n } from '@coze-arch/i18n';
import { safeJSONParse } from '@coze-arch/bot-utils'; import { safeJSONParse } from '@coze-arch/bot-utils';
import { type PluginMetaInfo } from '@coze-arch/bot-api/developer_api'; import { type PluginMetaInfo } from '@coze-arch/bot-api/developer_api';
import { type UploadValue } from '@coze-common/biz-components';
export const formRuleList = { export const formRuleList = {
name: [ name: [
@ -51,10 +51,6 @@ export const formRuleList = {
required: true, required: true,
message: I18n.t('create_plugin_modal_url1_error'), message: I18n.t('create_plugin_modal_url1_error'),
}, },
{
pattern: /^(https):\/\/.+$/,
message: I18n.t('create_plugin_modal_url_error_https'),
},
], ],
key: [ key: [
{ {

View File

@ -66,10 +66,6 @@ export const formRuleList = {
required: true, required: true,
message: I18n.t('create_plugin_modal_url1_error'), message: I18n.t('create_plugin_modal_url1_error'),
}, },
{
pattern: /^(https):\/\/.+$/,
message: I18n.t('create_plugin_modal_url_error_https'),
},
], ],
key: [ key: [
{ {