fix review change

This commit is contained in:
shao 2019-07-31 11:12:31 +08:00
parent f0726014c3
commit 27e7e33d12

View File

@ -357,7 +357,7 @@ export default class FormItem extends React.Component<FormItemProps, any> {
const haveColon = computedColon && !vertical;
// Remove duplicated user input colon
if (haveColon && typeof label === 'string' && (label as string).trim() !== '') {
labelChildren = (label as string).replace(/(|:)\s*$/, '');
labelChildren = (label as string).replace(/[:]\s*$/, '');
}
const labelClassName = classNames({