fix(Field): minus can only be placed on the first char (#6303)

This commit is contained in:
desperado
2020-05-19 16:20:54 +08:00
committed by GitHub
parent ee599ddcbe
commit ca827c205e
2 changed files with 9 additions and 4 deletions
+1
View File
@@ -113,4 +113,5 @@ test('formatNumber', () => {
expect(formatNumber('-1.2')).toEqual('-1');
expect(formatNumber('-1.2', true)).toEqual('-1.2');
expect(formatNumber('-1.2-', true)).toEqual('-1.2');
expect(formatNumber('123-')).toEqual('123');
});