projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
contrib/collection3: Allow numbers in type names.
[collectd.git]
/
contrib
/
collection3
/
bin
/
index.cgi
diff --git
a/contrib/collection3/bin/index.cgi
b/contrib/collection3/bin/index.cgi
index
ba5b48a
..
85064b8
100755
(executable)
--- 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-z
0-9
_]//g;
+ $type =~ s/_([A-Za-z
0-9
])/\U$1\E/g;
if (!defined ($types->{$type}))
{