Fix formatter (#7098)
Fix formatter (#7098)

The replace function can only work on a string, this little tweak will make the formatter not crash the page when the value is changed.
ant-design/ant-design,havefive/ant-design,marswong/ant-design,havefive/ant-design,RaoHai/ant-design,icaife/ant-design,havefive/ant-design,RaoHai/ant-design,ant-design/ant-design,vgeyi/ant-design,icaife/ant-design,marswong/ant-design,ant-design/ant-design,ant-design/ant-design,zheeeng/ant-design,vgeyi/ant-design,zheeeng/ant-design,icaife/ant-design,RaoHai/ant-design,elevensky/ant-design,icaife/ant-design,elevensky/ant-design,zheeeng/ant-design,elevensky/ant-design,vgeyi/ant-design,RaoHai/ant-design,havefive/ant-design,elevensky/ant-design,marswong/ant-design,zheeeng/ant-design,marswong/ant-design,vgeyi/ant-design