Welcome to Codidact Meta!
Codidact Meta is the meta-discussion site for the Codidact community network and the Codidact software. Whether you have bug reports or feature requests, support questions or rule discussions that touch the whole network – this is the site for you.
Post History
In the Q&A category of Meta a tag search for "proposal" shows 4 results, but a tag search for "proposal " (with a trailing space, as is commonly automatically inserted when typing on mobile) sh...
#4: Post edited
- In the Q&A category of Meta a tag search for "proposal" shows 4 results, but a tag search for "proposal " (with a trailing space, as is commonly automatically inserted when typing on mobile) shows 0 results.
- This seems to be a literal string search. For contrast, a search for "bug" shows 4 results, but a search for "bug " (with a trailing space) shows only 2 results. With the trailing space the "bug" tag does not show up as it only contains "bug" in the tag name, with no trailing space, but the "posts" and "status-completed" tags do show up as they contain "bug reports" and "bug has" in their respective descriptions, which have a space after "bug". The tag "status-bydesign" shows up in a search for "bug" as its description ends with "bug." but the lack of a space after the word in the description means this tag does not show up in a search for "bug " (with a trailing space).
- Should the search terms be stripped of leading and trailing spaces before being processed to prevent this behaviour?
- ---
*Note that this problem only seems to affect searches in the Tags tab. A search in the Posts tab gives identical results with or without a trailing space.*
- In the Q&A category of Meta a tag search for "proposal" shows 4 results, but a tag search for "proposal " (with a trailing space, as is commonly automatically inserted when typing on mobile) shows 0 results.
- This seems to be a literal string search. For contrast, a search for "bug" shows 4 results, but a search for "bug " (with a trailing space) shows only 2 results. With the trailing space the "bug" tag does not show up as it only contains "bug" in the tag name, with no trailing space, but the "posts" and "status-completed" tags do show up as they contain "bug reports" and "bug has" in their respective descriptions, which have a space after "bug". The tag "status-bydesign" shows up in a search for "bug" as its description ends with "bug." but the lack of a space after the word in the description means this tag does not show up in a search for "bug " (with a trailing space).
- Should the search terms be stripped of leading and trailing spaces before being processed to prevent this behaviour?
- ---
- *Note that this problem only seems to affect searches in the Tags tab. A search for "interface" in the Posts tab gives identical results with or without a trailing space, even though the results include "[Allow users to select their own default license per site and category, possibly per post type](https://meta.codidact.com/posts/278458)" which only contains "interface." (at the end of a sentence, not followed by a space).*
#3: Post edited
- In the Q&A category of Meta a tag search for "proposal" shows 4 results, but a tag search for "proposal " (with a trailing space, as is commonly automatically inserted when typing on mobile) shows 0 results.
- Should the search terms be stripped of leading and trailing spaces before being processed to prevent this behaviour?
- ---
- *Note that this problem only seems to affect searches in the Tags tab. A search in the Posts tab gives identical results with or without a trailing space.*
- In the Q&A category of Meta a tag search for "proposal" shows 4 results, but a tag search for "proposal " (with a trailing space, as is commonly automatically inserted when typing on mobile) shows 0 results.
- This seems to be a literal string search. For contrast, a search for "bug" shows 4 results, but a search for "bug " (with a trailing space) shows only 2 results. With the trailing space the "bug" tag does not show up as it only contains "bug" in the tag name, with no trailing space, but the "posts" and "status-completed" tags do show up as they contain "bug reports" and "bug has" in their respective descriptions, which have a space after "bug". The tag "status-bydesign" shows up in a search for "bug" as its description ends with "bug." but the lack of a space after the word in the description means this tag does not show up in a search for "bug " (with a trailing space).
- Should the search terms be stripped of leading and trailing spaces before being processed to prevent this behaviour?
- ---
- *Note that this problem only seems to affect searches in the Tags tab. A search in the Posts tab gives identical results with or without a trailing space.*
#2: Post edited
- In the Q&A category of Meta a tag search for "proposal" shows 4 results, but a tag search for "proposal " (with a trailing space, as is commonly automatically inserted when typing on mobile) shows 0 results.
Should the search terms be stripped of leading and trailing spaces before being processed to prevent this behaviour?
- In the Q&A category of Meta a tag search for "proposal" shows 4 results, but a tag search for "proposal " (with a trailing space, as is commonly automatically inserted when typing on mobile) shows 0 results.
- Should the search terms be stripped of leading and trailing spaces before being processed to prevent this behaviour?
- ---
- *Note that this problem only seems to affect searches in the Tags tab. A search in the Posts tab gives identical results with or without a trailing space.*
#1: Initial revision
Tag search breaks if a space is added
In the Q&A category of Meta a tag search for "proposal" shows 4 results, but a tag search for "proposal " (with a trailing space, as is commonly automatically inserted when typing on mobile) shows 0 results. Should the search terms be stripped of leading and trailing spaces before being processed to prevent this behaviour?