fix: remove unecessary var

This commit is contained in:
Mohamed Marrouchi 2025-05-13 19:07:21 +01:00
parent 82d6bc8d49
commit 7dd3297fa3

View File

@ -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];