feat(textSplitter): typo (#2138)

This commit is contained in:
Zong
2024-07-23 21:54:55 +08:00
committed by GitHub
parent abcf48d5ec
commit f9d43ac009

View File

@@ -144,7 +144,7 @@ const commonSplit = (props: SplitProps): SplitResponse => {
];
}
const isCustomSteep = checkIsCustomStep(step);
const isCustomStep = checkIsCustomStep(step);
const isMarkdownSplit = checkIsMarkdownSplit(step);
const independentChunk = checkIndependentChunk(step);
@@ -154,7 +154,7 @@ const commonSplit = (props: SplitProps): SplitResponse => {
.replace(
reg,
(() => {
if (isCustomSteep) return splitMarker;
if (isCustomStep) return splitMarker;
if (independentChunk) return `${splitMarker}$1`;
return `$1${splitMarker}`;
})()