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:
parent
74693809ed
commit
ef2fd319c0
@ -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";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user