Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mentions regex #72

Merged
merged 32 commits into from
Oct 24, 2023
Merged

Mentions regex #72

merged 32 commits into from
Oct 24, 2023

Conversation

unenglishable
Copy link
Member

update mentions regex to work correctly

separate regex into its own module

test mentions regex

test mentions username_to_user_id

consolidated source for hard-coded regex patterns
test existing and nonexistent patterns
map mentions to curly brace, then user_id mentions

regex scan for :user_id pattern in string

check matches using re-mapped usernames -> id list
not actually converting id's back to usernames

mapping @mentions_usernames to id's instead
check invalid mentions do not get generated
@akinsey akinsey merged commit b3547ef into posts-by-thread Oct 24, 2023
5 checks passed
@akinsey akinsey deleted the mentions-regex branch October 24, 2023 19:48
@github-actions
Copy link

🎉 This PR is included in version 1.19.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants