version: add =item command marker, optimized regexp
git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@10543 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -23,7 +23,7 @@ CommandVersion($$)
|
||||
push @files, $0; # path to fhem.pl
|
||||
push @ret, cfgDB_svnId() if(configDBUsed());
|
||||
foreach my $fn (@files) {
|
||||
next unless($fn =~ /^$modpath.?FHEM/ or $fn =~ /(?:^FHEM|fhem.pl$)/); # configDB
|
||||
next unless($fn =~ /^(?:$modpath.?)?FHEM/ or $fn =~ /fhem.pl$/); # configDB
|
||||
my $mod_name = ($fn=~ /[\/\\]([^\/\\]+)$/ ? $1 : $fn);
|
||||
next if($param && $mod_name !~ /$param/);
|
||||
next if(grep(/$mod_name/, @ret));
|
||||
@@ -85,6 +85,7 @@ sub version_sortModules($$)
|
||||
1;
|
||||
|
||||
=pod
|
||||
=item command
|
||||
=begin html
|
||||
|
||||
<a name="version"></a>
|
||||
|
||||
Reference in New Issue
Block a user