From 5c22e85c7f7f8825170d4951e6cf985b2fb1341f Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Tue, 15 Dec 2009 20:48:13 +1300 Subject: [PATCH] Fixing split_ddcn now handles things like MP3-CD Signed-off-by: Chris Cormack --- C4/Labels.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Labels.pm b/C4/Labels.pm index e4fbd5d650..82c59ccf23 100644 --- a/C4/Labels.pm +++ b/C4/Labels.pm @@ -980,7 +980,7 @@ sub split_ddcn { # ddcn examples: 'R220.3 H2793Z H32 c.2', 'BIO JP2 R5c.1' my (@parts) = m/ - ^([a-zA-Z-]+(?:$possible_decimal)?) # R220.3 # BIO # first example will require extra splitting + ^([a-zA-Z-]+[0-9]?-?[a-zA-Z]*(?:$possible_decimal)?) # R220.3 # BIO # first example will require extra splitting \s* (.+) # H2793Z H32 c.2 # R5c.1 # everything else (except bracketing spaces) \s* -- 2.39.5