2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-04 11:26:55 +00:00

91_notify.pm: fix strange regexp problem (Forum #52242)

git-svn-id: https://svn.fhem.de/fhem/trunk@13624 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2017-03-05 22:27:36 +00:00
parent 8df7ca8d51
commit cbb4a45889

View File

@ -28,7 +28,7 @@ sub
notify_Define($$) notify_Define($$)
{ {
my ($hash, $def) = @_; my ($hash, $def) = @_;
my ($name, $type, $re, $command) = split("[ \t]+", $def, 4); my ($name, $type, $re, $command) = split("[ \t\n]+", $def, 4);
if(!$command) { if(!$command) {
if($hash->{OLDDEF}) { # Called from modify, where command is optional if($hash->{OLDDEF}) { # Called from modify, where command is optional