[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

@@ -1,3 +1,3 @@
export function isNumber(value: string): boolean {
return /^\d+$/.test(value);
return /^\d+(\.\d+)?$/.test(value);
}