39_Talk2Fhem.pm: function normalize updated

git-svn-id: https://svn.fhem.de/fhem/trunk@16233 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Phill
2018-02-20 19:17:12 +00:00
parent 75c97e9bde
commit 80c489e13d

View File

@@ -85,6 +85,7 @@
# umlautfix
# 20.02.2018 0.4.3
# Bug that not load attributes at bootup fixed
# Function normalication updated
################################################################
# TODO:
#
@@ -806,7 +807,7 @@ sub Talk2Fhem_normalize($)
my $string = shift;
#mach probleme bei "ue"
# $string =~ s/\s{2,}|\b\w\b|\t|\n|['".,;:\!\?]/ /g;
$string =~ s/\s{2,}|[\s\t,.]\w[\s\t,.]|\t|\n|['".,;:\!\?]/ /g;
$string =~ s/\s{2,}|\t|\n|['".,;:\!\?]/ /g;
return $string;
}