[improvement] Tab: support string type of line-width & line-height (#3514)

This commit is contained in:
neverland
2019-06-14 17:29:30 +08:00
committed by GitHub
parent c05124b3ec
commit 7fbf943a2d
11 changed files with 52 additions and 58 deletions

View File

@@ -93,6 +93,8 @@ test('is-mobile', () => {
test('is-number', () => {
expect(isNumber('1')).toBeTruthy();
expect(isNumber('1.2')).toBeTruthy();
expect(isNumber('1..2')).toBeFalsy();
expect(isNumber('abc')).toBeFalsy();
expect(isNumber('1b2')).toBeFalsy();
});