hfaran / slack-export-viewer

A Slack Export archive viewer that allows you to easily view and share your Slack team's export
https://pypi.python.org/pypi/slack-export-viewer
MIT License
957 stars 192 forks source link

Fix annotated user mentions #27

Closed lethosor closed 8 years ago

lethosor commented 8 years ago

I ran into an issue with a fairly-new team today where some user mentions weren't being displayed properly. It turns out that, at least on this team, some identifiers start with "U1" instead of "U0". I couldn't determine whether U0 and U1 are the only possibilities, so I decided to expand this to accept any digit (although I'm not sure if the second character strictly needs to be numeric, for that matter).

hfaran commented 8 years ago

Seems reasonable enough to me. Your guess is as good as mine. :stuck_out_tongue:

Thanks for the fix!