mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-16 04:36:02 +00:00
version: add =item command marker, optimized regexp
git-svn-id: https://svn.fhem.de/fhem/trunk@10543 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
e928cedbb6
commit
5e6aa0b122
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user