Skip to content

The agent engineering platform.

add more vars to text splitter (#5503)

Harrison Chasef0ea77b23059
diff --git a/langchain/text_splitter.py b/langchain/text_splitter.py
index a88acf336c..d60ae2cf4e 100644
--- a/langchain/text_splitter.py
+++ b/langchain/text_splitter.py
@@ -443,6 +443,8 @@ class RecursiveCharacterTextSplitter(TextSplitter):
"\nfunction ",
"\nconst ",
"\nlet ",
+ "\nvar ",
+ "\nclass ",
# Split along control flow statements
"\nif ",
"\nfor ",