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

Change user highlight to use RegEx #488

Merged
merged 2 commits into from
Feb 10, 2019

Conversation

redsky17
Copy link
Contributor

@redsky17 redsky17 commented Feb 9, 2019

User highlighting is now based on Regular Expression instead of simple 'contains.' This should help prevent errors in highlighting when it shouldn't be done.

Here's a picture showing that it still works :)

image

User highlighting is now based on Regular Expression instead
of simple 'contains.'  This should help prevent errors in
highlighting when it shouldn't be done.
Copy link
Member

@KitsuneRal KitsuneRal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Almost perfect, just one small nitpick.

@@ -21,6 +21,7 @@

#include <user.h>
#include <events/roommessageevent.h>
#include <QRegularExpression>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#include <QRegularExpression>
#include <QtCore/QRegularExpression>

@KitsuneRal
Copy link
Member

Thanks!

@KitsuneRal KitsuneRal merged commit 82298bf into quotient-im:master Feb 10, 2019
@KitsuneRal KitsuneRal added enhancement A feature or change request for Quaternion bug/fix Quaternion doesn't work as expected and removed enhancement A feature or change request for Quaternion labels Feb 10, 2019
@vmedea
Copy link

vmedea commented Feb 10, 2019

that was fast thank you !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/fix Quaternion doesn't work as expected
Projects
Status: Version 0.0.9.4 - Done
Development

Successfully merging this pull request may close these issues.

3 participants