Let transparent colors stick.
Patch by fu.
diffs (11 lines):
diff -r f904d09edf49 -r e9a5878c4c11 cgi-bin/LJ/S2.pm
--- a/cgi-bin/LJ/S2.pm Fri Nov 19 15:58:17 2010 -0600
+++ b/cgi-bin/LJ/S2.pm Mon Nov 22 14:24:23 2010 +0800
@@ -2927,6 +2927,7 @@ sub Color__Color
my ($s) = @_;
$s =~ s/^\#//;
$s =~ s/^(\w)(\w)(\w)$/$1$1$2$2$3$3/s; # 'c30' => 'cc3300'
+ return { '_type' => 'Color', as_string => "" } if $s eq "";
return if $s =~ /[^a-fA-F0-9]/ || length($s) != 6;
my $this = { '_type' => 'Color' };
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog