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>) { |   while (my $showLine = <$rtShowFH>) { | ||||||
|     print STDERR "rt show line for $ticketSpec: $showLine" if ($VERBOSE >= 10); |     print STDERR "rt show line for $ticketSpec: $showLine" if ($VERBOSE >= 10); | ||||||
|     $paymentMethod = $1 |     $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. |     # don't 'last' when found as we want the last one. | ||||||
|   } |   } | ||||||
|   close $rtShowFH; |   close $rtShowFH; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Bradley M. Kuhn
						Bradley M. Kuhn