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

slight MentionManager robustness improvement #787

Merged
merged 1 commit into from
May 21, 2024

Conversation

asdfzdfj
Copy link
Contributor

changed MentionManager::extract() to pass in value to process by function argument rather than shared private property of the service, makes the data flow clearer and prevent accidental state sharing

also add unicode flag to mention regex matching in MentionManager to improve robustness when processing unicode text/matches, without this, the matched results may contain invalid unicode, and would result in 'Malformed UTF-8 characters, possibly incorrectly encoded' or similar errors when persisting entries/posts to database

changed MentionManager::extract() to pass in value to process by
function argument rather than shared private property of the service,
makes the data flow clearer and prevent accidental state sharing

also add unicode flag to mention regex matching in MentionManager to
improve robustness when processing unicode text/matches, without this,
the matched results may contain invalid unicode, and would result in
'Malformed UTF-8 characters, possibly incorrectly encoded' or similar
errors when persisting entries/posts to database
@asdfzdfj asdfzdfj force-pushed the fix/improve-mention-parsing-robustness branch from 67efeb1 to c6a7687 Compare May 21, 2024 04:31
@asdfzdfj asdfzdfj merged commit 06df5f6 into main May 21, 2024
7 checks passed
@asdfzdfj asdfzdfj deleted the fix/improve-mention-parsing-robustness branch May 21, 2024 05:00
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.

None yet

2 participants