2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

92_FileLog.pm: remove FileLog regexp Parts patch (Forum #32706)

git-svn-id: https://svn.fhem.de/fhem/trunk@10129 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2015-12-08 06:55:48 +00:00
parent 1e5ed0b309
commit 1a16e096ae

View File

@ -367,15 +367,8 @@ FileLog_fhemwebFn($$$$)
$ret .= "<br>Regexp parts";
$ret .= "<br><table class=\"block wide\">";
my $regexp= $hash->{REGEXP};
my @ra= ();
while($regexp =~ /^(.+?:.+?)\|(.+?:.+)$/) {
push @ra, $1;
$regexp= $2;
}
push @ra, $regexp;
if(@ra > 0) {
my @ra = split(/\|/, $hash->{REGEXP});
if(@ra > 1) {
foreach my $r (@ra) {
$ret .= "<tr class=\"".(($row++&1)?"odd":"even")."\">";
my $cmd = "cmd.X= set $d removeRegexpPart&val.X=$r"; # =.set: avoid JS