X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=scripts%2Fimage_maps.pl;h=f025340ab32b4ee39335234085313a85bf5b6d20;hb=85c4af4a97e002a6ec7804c7fb28d3c4c0972398;hp=0329481947386b944ceed452eb28099966fb7ce9;hpb=343d80b67b9683cd8a585e85d95f99d1163ce146;p=kivitendo-erp.git diff --git a/scripts/image_maps.pl b/scripts/image_maps.pl index 032948194..f025340ab 100755 --- a/scripts/image_maps.pl +++ b/scripts/image_maps.pl @@ -83,10 +83,10 @@ for (@gd_images) { my $name = fileparse($_->{filename}, ".png"); # the full grammar for valid css class names is completely bonkers (to put it mildly). - # so instead of trying to punch filenames into those class names, we'll just reduce them to a nice minimal set of - # a-z _ - + # so instead of trying to punch filenames into those class names, we'll + # just reduce them to a nice minimal set of lower case /[a-z0-9_-]*/ $name = lc $name; - $name =~ s/[^a-z_-]/-/g; + $name =~ s/[^a-z0-9_-]/-/g; print $file ".$class_for_map.$name { background-position: -$_->{h_offset}px 0px; }\n"; } }