mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix: remove unecessary var
This commit is contained in:
parent
82d6bc8d49
commit
7dd3297fa3
@ -289,7 +289,6 @@ export default abstract class BaseNlpHelper<
|
||||
|
||||
return (entity.values
|
||||
.flatMap((nlpValue) => {
|
||||
const processedText = text;
|
||||
const pattern = nlpValue.metadata?.pattern;
|
||||
|
||||
if (!pattern) {
|
||||
@ -306,7 +305,7 @@ export default abstract class BaseNlpHelper<
|
||||
return [];
|
||||
}
|
||||
|
||||
const matches = [...processedText.matchAll(regex)];
|
||||
const matches = [...text.matchAll(regex)];
|
||||
|
||||
return matches.map((match) => {
|
||||
let value = match[0];
|
||||
|
Loading…
Reference in New Issue
Block a user