Skip to content

Commit

Permalink
fix: change check rule (#1439)
Browse files Browse the repository at this point in the history
Signed-off-by: Qi Zhang <smallqi1@163.com>
  • Loading branch information
zzzhangqi authored Dec 18, 2024
1 parent 317354a commit 5df990a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/AddOrEditImageRegistry/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ class ConfirmModal extends PureComponent {
message: formatMessage({id:'placeholder.max255'}),
},
{
pattern: /^(http:\/\/|https:\/\/)/,
message: formatMessage({ id: 'placeholder.warehouse_address.Ban' }),
pattern: /^(?!http:\/\/|https:\/\/)/,
message: formatMessage({ id: 'placeholder.warehouse_address.ban' }),
}
],
getValueFromEvent: event => {return event.target.value.replace(/(^\s*)|(\s*$)/g, '');},
Expand Down

0 comments on commit 5df990a

Please sign in to comment.