mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +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:
parent
327a6ed994
commit
00c5ddfeb5
@ -85,6 +85,7 @@
|
|||||||
# umlautfix
|
# umlautfix
|
||||||
# 20.02.2018 0.4.3
|
# 20.02.2018 0.4.3
|
||||||
# Bug that not load attributes at bootup fixed
|
# Bug that not load attributes at bootup fixed
|
||||||
|
# Function normalication updated
|
||||||
################################################################
|
################################################################
|
||||||
# TODO:
|
# TODO:
|
||||||
#
|
#
|
||||||
@ -806,7 +807,7 @@ sub Talk2Fhem_normalize($)
|
|||||||
my $string = shift;
|
my $string = shift;
|
||||||
#mach probleme bei "ue"
|
#mach probleme bei "ue"
|
||||||
# $string =~ s/\s{2,}|\b\w\b|\t|\n|['".,;:\!\?]/ /g;
|
# $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;
|
return $string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user