Do not be so strict on this regex.
This commit is contained in:
parent
2e8f9c42d1
commit
e11ceab5dd
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ sub FindMostRecentPaymentMethodForTicket ($) {
|
|||
while (my $showLine = <$rtShowFH>) {
|
||||
print STDERR "rt show line for $ticketSpec: $showLine" if ($VERBOSE >= 10);
|
||||
$paymentMethod = $1
|
||||
if ($showLine =~ /\s+PAYMENT\s+METHOD\s*:\s*(.*?)\s*$/);
|
||||
if ($showLine =~ /^\s*PAYMENT\s+METHOD\s*:\s*(.*?)\s*$/);
|
||||
# don't 'last' when found as we want the last one.
|
||||
}
|
||||
close $rtShowFH;
|
||||
|
|
Loading…
Reference in a new issue