Skip to content

Commit

Permalink
fix: host should not be required (#479)
Browse files Browse the repository at this point in the history
* fix: host should not be required

* feat: remove required rule
  • Loading branch information
LiteSun authored Sep 17, 2020
1 parent c81f0b9 commit 5b24ece
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/pages/Route/components/Step1/RequestConfigView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,6 @@ const RequestConfigView: React.FC<Props> = ({ data, disabled, onChange }) => {
{...field}
validateTrigger={['onChange', 'onBlur']}
rules={[
{
required: true,
whitespace: true,
message: formatMessage({ id: 'route.request.config.input.domain.name' }),
},
{
pattern: new RegExp(/(^\*?[a-zA-Z0-9._-]+$|^\*$)/, 'g'),
message: formatMessage({ id: 'route.request.config.domain.name.rule' }),
Expand Down

0 comments on commit 5b24ece

Please sign in to comment.