2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 03:06:37 +00:00

fhem.pl: # comments are not removed if they start in the middle of the line.

git-svn-id: https://svn.fhem.de/fhem/trunk@8066 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2015-02-22 13:33:26 +00:00
parent ca1bf29bf3
commit 38bc1a9ed9
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
# Do not insert empty lines here, update check depends on it.
- feature: # comments in fhem.cfg are only removed at the line-start
- feature: set command modifyTimeSpec for at, to be used in webCmd
- added: New module 71_PHILIPS_AUDIO.pm for Philips MCi, Streamium and
Fidelio devices.

View File

@ -853,7 +853,7 @@ AnalyzeCommandChain($$;$)
return undef;
}
$cmd =~ s/#.*$//s;
$cmd =~ s/^\s*#.*$//s; # Remove comments at the beginning of the line
$cmd =~ s/;;/SeMiCoLoN/g;
my @saveCmdList = @cmdList; # Needed for recursive calls