From c16392d9bdd0f4f4a2ea8c1566ac2130eec04eab Mon Sep 17 00:00:00 2001 From: timmib <> Date: Sat, 11 Feb 2023 20:33:46 +0000 Subject: [PATCH] 93_InfluxDBLogger.pm: fixed numeric regex git-svn-id: https://svn.fhem.de/fhem/trunk@27204 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/93_InfluxDBLogger.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fhem/FHEM/93_InfluxDBLogger.pm b/fhem/FHEM/93_InfluxDBLogger.pm index 21920d9ca..4ef7da9fb 100644 --- a/fhem/FHEM/93_InfluxDBLogger.pm +++ b/fhem/FHEM/93_InfluxDBLogger.pm @@ -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($$$) {