Skip to content

Commit 73e1d89

Browse files
committed
fix: lint error no-useless-escape
1 parent 8653a4a commit 73e1d89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/parseValueAndUnit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export function parseValueAndUnit(
3939
out.value = parseFloat(str);
4040

4141
// @ts-ignore
42-
out.unit = str.match(/[\d.\-\+]*\s*(.*)/)[1] || defaultUnit;
42+
out.unit = str.match(/[\d.\-+]*\s*(.*)/)[1] || defaultUnit;
4343

4444
// @ts-expect-error
4545
const isValidUnit: boolean = VALID_UNITS.includes(out.unit);

0 commit comments

Comments
 (0)