From 21625b74bf32f19f643b7e9841a5b3b0147912a0 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Mon, 11 May 2009 11:39:19 -0500 Subject: [PATCH] tweak removal of whitespace from barcodes Per suggestion from Joe Atzberger, match on \s instead of [ \t] for stripping leading and trailing whitespace from barcode lookups. Signed-off-by: Galen Charlton --- circ/circulation.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circ/circulation.pl b/circ/circulation.pl index 1c6fb611b6..982cc722df 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -112,7 +112,7 @@ if (C4::Context->preference("AutoLocation") ne 1) { # FIXME: string comparison t } my $barcode = $query->param('barcode') || ''; -$barcode =~ s/^[ \t]+|[ \t]+$//g; # remove leading/trailing whitespace +$barcode =~ s/^\s*|\s*$//g; # remove leading/trailing whitespace $barcode = barcodedecode($barcode) if( $barcode && C4::Context->preference('itemBarcodeInputFilter')); my $stickyduedate = $query->param('stickyduedate'); -- 2.39.5