There was an error while loading. Please reload this page.
1 parent 3acf423 commit 60c837cCopy full SHA for 60c837c
langchain/document_loaders/whatsapp_chat.py
@@ -28,7 +28,7 @@ def load(self) -> List[Document]:
28
29
for line in lines:
30
result = re.match(
31
- r"(\d{1,2}/\d{1,2}/\d{2,4}, \d{1,2}:\d{1,2} (?:AM|PM)) - (.*?): (.*)",
+ r"(\d{1,2}/\d{1,2}/\d{2,4}, \d{1,2}:\d{1,2}(?: AM| PM)?) - (.*?): (.*)",
32
line.strip(),
33
)
34
if result:
0 commit comments