@dudousxd/nestjs-agent-rag 0.13.0 → 0.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -2186,7 +2186,7 @@ var KeywordRetriever = class {
2186
2186
  }
2187
2187
  };
2188
2188
  function tokenize(text) {
2189
- return text.toLowerCase().match(/[a-z0-9]+/g) ?? [];
2189
+ return text.normalize("NFKD").replace(/\p{M}/gu, "").toLowerCase().match(/[\p{L}\p{N}_]+/gu) ?? [];
2190
2190
  }
2191
2191
  __name(tokenize, "tokenize");
2192
2192