mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix: restore matchNLP function previous code
This commit is contained in:
parent
07a2b9c4d1
commit
35505294fa
@ -355,7 +355,7 @@ export class BlockService extends BaseService<
|
||||
return undefined;
|
||||
}
|
||||
// Find NLP pattern match based on best guessed entities
|
||||
const pattern = nlpPatterns.find((entities: NlpPattern[]) => {
|
||||
return nlpPatterns.find((entities: NlpPattern[]) => {
|
||||
return entities.every((ev: NlpPattern) => {
|
||||
if (ev.match === 'value') {
|
||||
return nlp.entities.find((e) => {
|
||||
@ -371,7 +371,6 @@ export class BlockService extends BaseService<
|
||||
}
|
||||
});
|
||||
});
|
||||
return pattern;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user