mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-27 04:35:34 +00:00
fhem.pl: fix json2nameValue: implement true/false (Forum #90847)
git-svn-id: https://svn.fhem.de/fhem/trunk@17271 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
9d2250128d
commit
cdc1bc16ec
@ -4988,6 +4988,10 @@ json2nameValue($;$)
|
||||
$ret->{"$prefix$name"} = $1;
|
||||
$in = $2;
|
||||
|
||||
} elsif($val =~ m/^(true|false)(.*)$/s) {
|
||||
$ret->{"$prefix$name"} = $1;
|
||||
$in = $2;
|
||||
|
||||
} else {
|
||||
Log 1, "Error parsing $val";
|
||||
$in = "";
|
||||
|
Loading…
x
Reference in New Issue
Block a user