mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
strip spaces from values
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@1743 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
d61ef9743a
commit
8b379bc416
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user