-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
issue mentioning two-part / hyphenated names #2730
Comments
I think that if you start a @mention with the first name and then don't find your target, adding the last name will always find it. I believe this isn't exactly a bug, just somewhat of a flaw within mentioning. As for Hyphenated names, yes I do see the issue you're talking about. ExamplesFirst nameExact nameLast nameHyphenated name
|
perhaps we just have to align the regex a bit |
I'll give it a try when i have time / when i find the regex. If i find a fix, it will be for version 1.1.2 but i'll let you know about it and i'm sure it won't need too much work to adapt to the new version. On the other hand, if you could pinpoint the file and function/lines/bloc concerned, i'd be more than happy. I still spend way too much time to find the right code in the source before doing actual fixes. Thanks for the quick feedback! |
Hmm I could fix it by adding |
@buddh4 wouldn't it also be a better idea to use |
After my first tests, adding '-' to the array seems to work well on version 1.1.2 (yay!) I haven't tried changing mb_strtolower($keyword, 'utf8mb4') though, i'll wait buddh4's opinions on the subject. |
think utf8mb4 is mysql specific |
Using |
As I said utf8mb4 is mysql specific php supports the following encodings: http://php.net/manual/en/mbstring.supported-encodings.php |
Hmm... Then I'll be doing some test to see why utf-8 isn't working on my server... |
Hi,
I use humhub ver 1.1.2 and when i try to mention a user with a two part name, i can't find the user.
But i can find him if i start the mentionning with the second part of the name. For instance, if i try to mention Jean-Pierre Smith, typing @Jean-Pierre will show nothing; but typing @pierre will find the correct user. It's the same behaviour with two-part last names.
I did a quick search trough existing issues and saw nothing related to the subject. Is is still an existing issue on new versions? If not, at what point was the problem solved?
Thanks!
The text was updated successfully, but these errors were encountered: