]> ruin.nu Git - ndwebbie.git/commitdiff
Shipname can contain space now
authorMichael Andreen <harv@ruin.nu>
Sat, 29 Oct 2011 20:03:18 +0000 (22:03 +0200)
committerMichael Andreen <harv@ruin.nu>
Sat, 29 Oct 2011 20:03:18 +0000 (22:03 +0200)
lib/NDWeb/Controller/Members.pm

index b8cdbe159d313858d6d1bf89a4dad5f8c883e139..65b1355ae23f20f599a7ec1f183d4295fda87f0f 100644 (file)
@@ -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;