From: Anthony Dewhurst Date: Sun, 30 Aug 2009 21:32:55 +0000 (+0100) Subject: contrib/collection3: Allow numbers in type names. X-Git-Tag: collectd-4.6.5~9 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=eb1d4382c6c29ce598052daaf13ef6ff6672430f;p=collectd.git contrib/collection3: Allow numbers in type names. When converting the on-disk type name to the displayed name, do not strip numbers out. Signed-off-by: Florian Forster --- diff --git a/contrib/collection3/bin/index.cgi b/contrib/collection3/bin/index.cgi index ba5b48a0..85064b86 100755 --- a/contrib/collection3/bin/index.cgi +++ b/contrib/collection3/bin/index.cgi @@ -299,8 +299,8 @@ sub action_show_selection my $file = $_; my $type = ucfirst (lc ($file->{'type'})); - $type =~ s/[^A-Za-z_]//g; - $type =~ s/_([A-Za-z])/\U$1\E/g; + $type =~ s/[^A-Za-z0-9_]//g; + $type =~ s/_([A-Za-z0-9])/\U$1\E/g; if (!defined ($types->{$type})) {