Upgrade dependencies, Fix #4026

This commit is contained in:
Jeremy Thomas
2026-03-01 20:10:40 +00:00
parent 210b6f03b7
commit 193c7aaa73
5 changed files with 94 additions and 70 deletions

View File

@@ -286,12 +286,21 @@
"9": 9,
);
@for $i from if($minus, 2, 1) through string.length($value) {
$start: 1;
@if $minus {
$start: 2;
}
@for $i from $start through string.length($value) {
$character: string.slice($value, $i, $i);
@if not(list.index(map.keys($numbers), $character) or $character == ".") {
$signed-result: $result;
@if $minus {
$signed-result: -$result;
}
@return to-length(
if($minus, -$result, $result),
$signed-result,
string.slice($value, $i)
);
}
@@ -306,5 +315,8 @@
}
}
@return if($minus, -$result, $result);
@if $minus {
@return -$result;
}
@return $result;
}