From c1ae2ba55e857beeccfebbc4712d4657015bfc5b Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Wed, 23 Oct 2024 07:29:56 -0400 Subject: [PATCH] Fix regex to allow multiple settings without a conflict --- .../Com/ByWaterSolutions/EdifactEnhanced/Edifact/Order.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Plugin/Com/ByWaterSolutions/EdifactEnhanced/Edifact/Order.pm b/Koha/Plugin/Com/ByWaterSolutions/EdifactEnhanced/Edifact/Order.pm index 050f56e9..4d82b278 100755 --- a/Koha/Plugin/Com/ByWaterSolutions/EdifactEnhanced/Edifact/Order.pm +++ b/Koha/Plugin/Com/ByWaterSolutions/EdifactEnhanced/Edifact/Order.pm @@ -144,7 +144,7 @@ sub interchange_header { # If plugin is set to send Buyer SAN in header *and* the vendor username as buyer SAN is set, send that # If plugin is set to send Buyer SAN in header *and* the buyer sand should come from the library ean description if ( $self->{plugin}->retrieve_data('buyer_san_in_header') && $self->{plugin}->retrieve_data('buyer_san_extract_from_library_ean_description') ) { - $self->{sender}->description =~ m/SAN:\{(.*)}/; + $self->{sender}->description =~ m/SAN:\{(.\S*)\}/; my $ean = $1; $hdr .= _interchange_sr_identifier( $ean,