2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 06:39:11 +00:00

93_InfluxDBLogger.pm: fixed numeric regex

git-svn-id: https://svn.fhem.de/fhem/trunk@27204 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
timmib 2023-02-11 20:33:46 +00:00
parent cce457ce3f
commit c16392d9bd

View File

@ -372,7 +372,7 @@ sub InfluxDBLogger_Map($$$$)
}
$map->{$deviceName}->{$readingName}->{"value"} = $readingValue;
$map->{$deviceName}->{$readingName}->{"numeric"} = $readingValue =~ /^[0-9,.E-]+$/;
$map->{$deviceName}->{$readingName}->{"numeric"} = $readingValue =~ /^[-+]?[0-9]*[\.\,]?[0-9]+([eE][-+]?[0-9]+)?$/;
}
sub InfluxDBLogger_HttpCallback($$$)
{