Skip to content

Commit

Permalink
Update css-calc.js
Browse files Browse the repository at this point in the history
  • Loading branch information
asamuzaK committed Dec 27, 2024
1 parent 56eb1fd commit 984ef20
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/js/css-calc.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,6 @@ export const cssCalc = (value, opt = {}) => {
if (REG_LENGTH.test(resolvedValue)) {
const [, val, unit] = REG_LENGTH.exec(resolvedValue);
resolvedValue = `${roundToPrecision(Number(val), HEX)}${unit}`;
} else if (resolvedValue.includes('NaN * 1rad')) {
resolvedValue = resolvedValue.replace('NaN * 1rad', 'NaN * 1deg');
}
// wrap with `calc()`
if (resolvedValue && !REG_START_MATH_VAR.test(resolvedValue) &&
Expand Down

0 comments on commit 984ef20

Please sign in to comment.