diff --git a/components/form/FormItem.jsx b/components/form/FormItem.jsx index 5e8e5523f6..117132cb3c 100644 --- a/components/form/FormItem.jsx +++ b/components/form/FormItem.jsx @@ -165,7 +165,7 @@ export default class FormItem extends React.Component { // remove user input colon let label = props.label; if (typeof label === 'string' && label.trim() !== '') { - label = props.label.replace(/:|:$/, ''); + label = props.label.replace(/[:|:]\s*$/, ''); } return props.label ? (