service regular fix (#110)

* fix regular dot

* add yarn.lock to .gitignore
This commit is contained in:
yimeng 2020-04-23 10:52:50 +08:00 committed by GitHub
parent c3870840e8
commit 894723f7e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -48,5 +48,6 @@ _test
/web/node_modules /web/node_modules
/web/.cache-loader /web/.cache-loader
/web/yarn.lock

View File

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