Unit.pm: add other space variants to regex

git-svn-id: https://svn.fhem.de/fhem/trunk@13272 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
loredo
2017-01-29 17:28:13 +00:00
parent b568468b2a
commit 332c7684af

View File

@@ -4364,7 +4364,7 @@ sub Unit_DbLog_split($$) {
formatReading( $name, $reading, "" );
if ( defined($txt) && defined($reading) && defined($val) ) {
$txt =~ s/\s*$val\s*//;
$txt =~ s/[\s\u202F\u00A0]*$val[\s\u202F\u00A0]*//;
$value = $val;
if ( !looks_like_number($val) && defined($val_num) ) {
if ( ref($val_num) eq "ARRAY" ) {