]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
fix a regex capture fail
authorRudolf Polzer <divverent@xonotic.org>
Thu, 10 Nov 2011 21:55:30 +0000 (22:55 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Thu, 10 Nov 2011 21:55:30 +0000 (22:55 +0100)
misc/tools/map-sRGBconvert.pl

index 5a928b93d0ff1793798b0cf5950380df53aec71d..3667fa113c84433be7f1ba1534522972ea9b2fbd 100644 (file)
@@ -39,7 +39,7 @@ while(<STDIN>)
                        $line = "\"$key\" \"$r $g $b\"";
                }
        }
-       elsif(/^\s*"_floodlight"\s+"\s*([-+0-9.]+)\s*([-+0-9.]+)\s*([-+0-9.]+)\s*(.*)"\s*$/i)
+       elsif(/^\s*"_floodlight"\s+"\s*([-+0-9.]+)\s*([-+0-9.]+)\s*([-+0-9.]+)(\s*.*)"\s*$/i)
        {
                my $r = $1;
                my $g = $2;