+ update regex
This commit is contained in:
parent
c5c8a03202
commit
25501609aa
|
@ -98,7 +98,7 @@ sub check_hba {
|
||||||
|
|
||||||
my $not_logged = 0;
|
my $not_logged = 0;
|
||||||
my $logged = 0;
|
my $logged = 0;
|
||||||
while ($hba_infos =~ /(SP Name:.*?)\n\n/msig) {
|
while ($hba_infos =~ /(SP Name:.*?)(\n\n|\Z)/msig) {
|
||||||
my $port_infos = $1;
|
my $port_infos = $1;
|
||||||
|
|
||||||
# Not in good section
|
# Not in good section
|
||||||
|
|
|
@ -52,7 +52,7 @@ sub check_port {
|
||||||
if ($self->{response} =~ /Information about each SPPORT:(.*)/msi) {
|
if ($self->{response} =~ /Information about each SPPORT:(.*)/msi) {
|
||||||
my $port_infos = $1;
|
my $port_infos = $1;
|
||||||
|
|
||||||
while ($port_infos =~ /(SP Name:.*?)\n\n/msig) {
|
while ($port_infos =~ /(SP Name:.*?)(\n\n|\Z)/msig) {
|
||||||
my $port_infos = $1;
|
my $port_infos = $1;
|
||||||
|
|
||||||
# Not in good section
|
# Not in good section
|
||||||
|
|
Loading…
Reference in New Issue