forked from extern/egroupware
Fix file sizes with decimal like "5.0GB" were parsed as 0GB
This commit is contained in:
parent
d38681279a
commit
448a575886
@ -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])){
|
||||
|
Loading…
Reference in New Issue
Block a user