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

Clickable persons chat middleware broken on multiple persons with same first name #289

Open
lieuwex opened this issue Jan 23, 2017 · 0 comments

Comments

@lieuwex
Copy link
Member

lieuwex commented Jan 23, 2017

Okay this is a fun one, with two people:

[
	{ "_id": "a", "profile": { "firstName": "Henk", "lastName": "Pietersen" } },
	{ "_id": "b", "profile": { "firstName": "Henk", "lastName": "Kaazig" } }
]

the middleware will currently generate

<a id="a"><a id="b">Henk</a></a> <a id="b">Kaazig</a>

We should find a way to prefer the 'Kaazig' immediately, since it's surname is behind the first name.

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

No branches or pull requests

1 participant