diff --git a/extensions/memory-lancedb/index.ts b/extensions/memory-lancedb/index.ts index 357265b88db..63d3524831e 100644 --- a/extensions/memory-lancedb/index.ts +++ b/extensions/memory-lancedb/index.ts @@ -269,7 +269,9 @@ export function shouldCapture(text: string, options?: { maxChars?: number }): bo export function detectCategory(text: string): MemoryCategory { const lower = text.toLowerCase(); - if (/prefer|preferuji|radši|nechci|like|love|hate|want|need|always|never|important/i.test(lower)) { + if ( + /prefer|preferuji|radši|nechci|like|love|hate|want|need|always|never|important/i.test(lower) + ) { return "preference"; } if (/我喜欢|我偏好|我讨厌|我不喜欢|我爱|我想要|我需要/.test(text)) {