2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 04:36:36 +00:00

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 327a6ed994
commit 00c5ddfeb5

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;
}