feat(textSplitter): typo (#2138)
This commit is contained in:
parent
abcf48d5ec
commit
f9d43ac009
@ -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}`;
|
||||
})()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user