Skip to content

Commit

Permalink
service regular fix (#110)
Browse files Browse the repository at this point in the history
* fix regular dot

* add yarn.lock to .gitignore
  • Loading branch information
yimeng committed Apr 23, 2020
1 parent c387084 commit 894723f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,6 @@ _test

/web/node_modules
/web/.cache-loader
/web/yarn.lock


2 changes: 1 addition & 1 deletion web/src/pages/Monitor/Collect/CollectForm/PORTForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class CollectForm extends Component<Props & WrappedComponentProps> {
initialValue: service,
rules: [
{ 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"
Expand Down

0 comments on commit 894723f

Please sign in to comment.