Skip to content

Commit

Permalink
跟amis url类型一样默认也允许配置ftp和sftp前缀
Browse files Browse the repository at this point in the history
  • Loading branch information
yinlianghui committed May 15, 2024
1 parent 09c70ab commit 2f959cd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ export async function convertSFieldToAmisField(field, readonly, ctx) {
if(typeof fieldAmisValidations === "undefined"){
Object.assign(convertData, {
"validations": {
"matchRegexp": "^((http:\\/\\/|https:\\/\\/)+([^\\s\\/\\.]+(\\.[^\\s\\/\\.]+)+))*(\\/[^\\s\\.\\/]+)*$"
"matchRegexp": "^((http:\\/\\/|https:\\/\\/|ftp:\\/\\/|sftp:\\/\\/)+([^\\s\\/\\.]+(\\.[^\\s\\/\\.]+)+))*(\\/[^\\s\\.\\/]+)*$"
},
"validationErrors": {
"matchRegexp": i18next.t('frontend_form_validation_failed_url')//"URL 格式不正确"
Expand Down

0 comments on commit 2f959cd

Please sign in to comment.