summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/common.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/common.pm b/perl-install/common.pm
index ef141fe68..83ce5d198 100644
--- a/perl-install/common.pm
+++ b/perl-install/common.pm
@@ -600,9 +600,9 @@ sub setVirtual($) {
sub removeXiBSuffix($) {
local $_ = shift;
- /(\d+)k$/i and return $1 * 1024;
- /(\d+)M$/i and return $1 * 1024 * 1024;
- /(\d+)G$/i and return $1 * 1024 * 1024 * 1024;
+ /(\d+)\s*kB?$/i and return $1 * 1024;
+ /(\d+)\s*MB?$/i and return $1 * 1024 * 1024;
+ /(\d+)\s*GB?$/i and return $1 * 1024 * 1024 * 1024;
$_;
}
sub formatXiB {