We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8653a4a commit 73e1d89Copy full SHA for 73e1d89
src/utils/parseValueAndUnit.ts
@@ -39,7 +39,7 @@ export function parseValueAndUnit(
39
out.value = parseFloat(str);
40
41
// @ts-ignore
42
- out.unit = str.match(/[\d.\-\+]*\s*(.*)/)[1] || defaultUnit;
+ out.unit = str.match(/[\d.\-+]*\s*(.*)/)[1] || defaultUnit;
43
44
// @ts-expect-error
45
const isValidUnit: boolean = VALID_UNITS.includes(out.unit);
0 commit comments