From 43fdc783589ecc19ce9a12f6dc35f5e0a21644e5 Mon Sep 17 00:00:00 2001 From: Chris Nighswonger Date: Thu, 26 Feb 2009 15:43:35 -0500 Subject: [PATCH] Kohabug 2500 Fiction Call Number Splitting Enhancement/Bugfix The current regexp used to split fiction call numbers does not handle the '.' char well. This patch corrects the regexp so that it behaves as expected. This patch should be ported to the 3.0.x branch. [fbcbug 5] Signed-off-by: Galen Charlton Signed-off-by: Henri-Damien LAURENT --- C4/Labels.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Labels.pm b/C4/Labels.pm index 65c62a732a..3a21bbd1a2 100644 --- a/C4/Labels.pm +++ b/C4/Labels.pm @@ -994,7 +994,7 @@ sub split_fcn { # Split fiction call numbers based on spaces SPLIT_FCN: while ($fcn) { - if ($fcn =~ m/([A-Za-z0-9]+)(\W?).*?/x) { + if ($fcn =~ m/([A-Za-z0-9]+\.?[0-9]?)(\W?).*?/x) { push (@fcn_split, $1); $fcn = $'; } -- 2.39.5