Skip to content

fix: make chat parser case-insensitive for am/pm to support all WhatsApp locales#2

Merged
rootCircle merged 1 commit intomainfrom
fix/case-insensitive-parser
Apr 7, 2026
Merged

fix: make chat parser case-insensitive for am/pm to support all WhatsApp locales#2
rootCircle merged 1 commit intomainfrom
fix/case-insensitive-parser

Conversation

@Him7n
Copy link
Copy Markdown
Collaborator

@Him7n Him7n commented Mar 28, 2026

Summary

  • Chat parser regex only matched uppercase AM/PM but Indian locale WhatsApp exports use lowercase am/pm
  • Added re.IGNORECASE flag to handle all variants (am, AM, Am, pm, PM, etc.)

Test

Verified both chat.txt (lowercase am/pm) and ChatE.txt (lowercase pm) parse correctly — 2896 and 2968 messages respectively.

Made with Cursor

@rootCircle rootCircle merged commit f0cbaa3 into main Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants