Files
langchain/tests/unit_tests
Sasmitha Manathunga 0c7a5cb206 Fix inconsistent behavior of CharacterTextSplitter when changing keep_separator (#7263)
- Description:
- When `keep_separator` is `True` the `_split_text_with_regex()` method
in `text_splitter` uses regex to split, but when `keep_separator` is
`False` it uses `str.split()`. This causes problems when the separator
is a special regex character like `.` or `*`. This PR fixes that by
using `re.split()` in both cases.
- Issue: #7262 
- Tag maintainer: @baskaryan
2023-07-06 09:30:03 -04:00
..
2023-06-16 11:52:56 -07:00
2023-07-01 13:39:19 -04:00
2023-07-01 13:39:19 -04:00
2023-05-19 15:27:50 -07:00
2022-10-24 14:51:15 -07:00
2023-05-22 16:43:07 -07:00
2022-10-24 14:51:15 -07:00