2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-12 16:46:35 +00:00

strip spaces from values

git-svn-id: https://svn.fhem.de/fhem/trunk@1743 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
mfr69bs 2012-07-20 22:45:03 +00:00
parent 9c57ad409a
commit d416976100

View File

@ -73,6 +73,7 @@ CommandGetState($)
$val =~ s/\s+$//g;
$val = stringToNumber($val);
$val = stripNumber($val);
$val =~ s/\s+$//g;
$v = $val if (isNumber($val) && !$v);
$v = $val if (isInteger($val) && !$v);
$v = $val if (isFloat($val) && !$v);