Skip to content

Commit

Permalink
Merge pull request MyIntervals#167 from raxbg/fix/vm_size_parsing
Browse files Browse the repository at this point in the history
Bug fix in parsing size units
  • Loading branch information
sabberworm authored Aug 12, 2019
2 parents 4751634 + 0bebd18 commit c4509f5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Sabberworm/CSS/Value/Size.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ private static function getSizeUnits() {
self::$SIZE_UNITS[$iSize][strtolower($val)] = $val;
}

// FIXME: Should we not order the longest units first?
ksort(self::$SIZE_UNITS, SORT_NUMERIC);
krsort(self::$SIZE_UNITS, SORT_NUMERIC);
}

return self::$SIZE_UNITS;
Expand Down

0 comments on commit c4509f5

Please sign in to comment.