mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-03 04:30:06 +08:00
fix review change
This commit is contained in:
parent
f0726014c3
commit
27e7e33d12
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user