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

typeahead: Replace no-break space (U+00A0) in query with `space (U+… #10058

Closed
wants to merge 1 commit into from

Conversation

shubham-padia
Copy link
Member

@shubham-padia shubham-padia commented Jul 25, 2018

…0020)`.

Fixes #10039.
Typing "tim " did not did not produce any match when suggesting person
in composebox typeahead or user group typeahead as the space at the
end of the "tim " string passed by the browser was a
no break-space (U+00A0) instead of space (U+0020).
Although there are unicode characters other than no break-space which
represent spaces, only U+00A0 is replaced as it was the only space
character encountered when testing this issue manually.

One of the follow up issue after this would be to use composebox_typeahead.query_matches_person in user group settings typeahead after extracting query_matches_* functions to somewhere appropriate (I'm not sure about what location is appropriate atm, would put some more thought into it.).

…0020)`.

Fixes zulip#10039.
Typing "tim " did not did not produce any match when suggesting person
in composebox typeahead or user group typeahead as the space at the
end of the "tim " string passed by the browser was a
`no break-space (U+00A0)`  instead of `space (U+0020)`.
Although there are unicode characters other than `no break-space` which
represent spaces, only U+00A0 is replaced as it was the only space
character encountered when testing this issue manually.
@zulipbot
Copy link
Member

Hello @zulip/server-compose members, this pull request was labeled with the "area: compose" label, so you may want to check it out!

@timabbott
Copy link
Sponsor Member

Nice debugging! Merged, after modifying the comment to mention contenteditable inputs, since I think that's what causes the browser to produce this. Thanks @shubham-padia!

@timabbott timabbott closed this Jul 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants