fix trim bug

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10207 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
amy0701 2011-08-02 09:03:56 +00:00
parent c342917793
commit 61f9181cba

View File

@ -576,9 +576,9 @@ sub trim
{
my $str = shift @_;
if($str){
$str =~ s/\#/__wellnumber__/g;
# $str =~ s/\#/__wellnumber__/g;
$str =~ s/^\s+|#.+|\s+$//g;
$str =~ s/__wellnumber__/#/g;
# $str =~ s/__wellnumber__/#/g;
}
return $str;
}