Escaping the "#" character in search

You just hit 3 bugs-in-one … you get the :jack_o_lantern: :hotsprings:

Your actual bug:

#4 is treated as a category filter and by adding it search is assuming you are trying to find all topics in the category id 4, or something along those lines. # should not allow for category id, and always just pass through misses.

Two side bugs I discovered while answering this:

  • Our prettifier is mucking big time with search results. “pozidrive” as a search term returns zero results, most likely cause of the quotes. I have to fix that.

  • Our # autocomplete is all messed up in composer, #2space and the autocomplete is still open. It should always unconditionally close on space.

8 curtidas