diff --git a/components/form/FormItem.tsx b/components/form/FormItem.tsx index 98bc00a208..2d78850c7a 100644 --- a/components/form/FormItem.tsx +++ b/components/form/FormItem.tsx @@ -357,7 +357,7 @@ export default class FormItem extends React.Component { 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({