mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-04 05:16:45 +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:
parent
8df7ca8d51
commit
cbb4a45889
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user