@mastra/rag 2.7.2-alpha.0 → 2.7.3-alpha.0

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.js CHANGED
@@ -4006,7 +4006,7 @@ var TextTransformer = class {
4006
4006
  };
4007
4007
  // src/document/transformers/character.ts
4008
4008
  function splitTextWithRegex(text, separator, separatorPosition) {
4009
- if (!separator) return text.split("");
4009
+ if (!separator) return Array.from(text);
4010
4010
  if (!text) return [];
4011
4011
  const result = [];
4012
4012
  let lastIndex = 0;