fix: service name validation

This commit is contained in:
jsers 2020-04-29 10:49:35 +08:00
parent 9c129acdb4
commit c27c0b09a9
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ class CollectForm extends Component<Props & WrappedComponentProps> {
initialValue: service,
rules: [
{ required: true },
{ pattern: /^[a-zA-Z0-9-]+$/, message: this.props.intl.formatMessage({ id: 'collect.proc.service.pattern.msg' }) },
{ pattern: /^[a-zA-Z0-9-_\.]+$/, message: this.props.intl.formatMessage({ id: 'collect.proc.service.pattern.msg' }) },
],
})}
size="default"