2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-08 13:24:56 +00:00

39_alexa.pm: allow multiple | separated sample utterances in fhemIntens

git-svn-id: https://svn.fhem.de/fhem/trunk@13647 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2017-03-08 19:27:43 +00:00
parent 74693809ed
commit ef2fd319c0

View File

@ -492,7 +492,9 @@ Log 1, $intent_name;
push @{$schema->{intents}}, {intent => $intent_name };
}
$samples .= "\n$intent_name $utterance";
foreach my $u ( split( '\|', $utterance ) ) {
$samples .= "\n$intent_name $u";
}
}
$samples .= "\n";
}