Escaping the "#" character in search

The OP is fixed per

https://github.com/discourse/discourse/commit/97fa64d8468ab91265c9a8b1b9f42e62c40ca8de

Keep in mind # in search is used as a special delimiter to search for tags and categories, I added a bypass here if there are zero matching categories and tags. However, if you do a search for say docker on meta, it will not find this post cause docker is a legit tag name.

There is an open question to @codinghorror on weather we should allow unqualified #TAG as opposed to requiring qualification for tags like the auto complete adds (eg: for tag search require #docker::tag and always pass through #docker )

I am mixed on changing this cause the bypass should be good enough ™

Leaving open so @tgxworld can sort out the extreme problem of “test” in our infrastructure and look at autocomplete which is weird.

@tgxworld feel free to split this up and close if you wish.

5 curtidas