Fix file sizes with decimal like "5.0GB" were parsed as 0GB

This commit is contained in:
nathan 2022-11-18 11:47:02 -07:00
parent d38681279a
commit 448a575886

View File

@ -1130,7 +1130,7 @@ class Vfs extends Vfs\Base
$val = trim($_val);
$matches = null;
preg_match('#([0-9]+)[\s]*([a-z]+)#i', $val, $matches);
preg_match('#([0-9.]+)[\s]*([a-z]+)#i', $val, $matches);
$last = '';
if(isset($matches[2])){