From 448a575886a710ca85222eb277a83cb863318f80 Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 18 Nov 2022 11:47:02 -0700 Subject: [PATCH] Fix file sizes with decimal like "5.0GB" were parsed as 0GB --- api/src/Vfs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Vfs.php b/api/src/Vfs.php index 20e3d0f898..1a8b077b10 100644 --- a/api/src/Vfs.php +++ b/api/src/Vfs.php @@ -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])){