From f8a44abb155d4b43435a492f6707f61bd20a1ea8 Mon Sep 17 00:00:00 2001 From: Michael Andreen Date: Sat, 29 Oct 2011 22:03:18 +0200 Subject: [PATCH] Shipname can contain space now --- lib/NDWeb/Controller/Members.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/NDWeb/Controller/Members.pm b/lib/NDWeb/Controller/Members.pm index b8cdbe1..65b1355 100644 --- a/lib/NDWeb/Controller/Members.pm +++ b/lib/NDWeb/Controller/Members.pm @@ -656,7 +656,7 @@ sub parseconfirmations { amount => 0, ships => [] }; - while ($match{ships}->[0] =~ m/(\w+)\s+(FI|CO|FR|DE|CR|BS)[^\d]+((?:\d+\s*){5})/g){ + while ($match{ships}->[0] =~ m/(\w[ \w]+?)\s+(FI|CO|FR|DE|CR|BS)[^\d]+((?:\d+\s*){5})/g){ my $ship = $1; my @amounts = split /\D+/, $3; my $base = shift @amounts; -- 2.39.2