From 9abdd5c94d13cddf74c074276a4ed0c310e2a32e Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 2 Mar 2001 14:22:50 +0000 Subject: (removeXiBSuffix): enhanced, more flexible --- perl-install/common.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'perl-install/common.pm') 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 { -- cgit v1.2.1