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:
parent
c342917793
commit
61f9181cba
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user