Single apostrophes and quotes change search behaviour #4924

Open
opened 2026-02-05 09:26:41 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @matthias4217 on GitHub (Aug 23, 2024).

Describe the Bug

When searching for Subject's terms (using an apostrophe U+0027, for instance, terms will be added to the search terms input, while Subject's will go in the exact terms one.

image

The same happens when using quotes (" U+0022), but not when using the right single quotation mark ( U+2019).

Steps to Reproduce

Use a single apostrophe or a quote in a search.

Expected Behaviour

If using a single quote, I think it would be better to internally escape it and not treat it as a delimiter for an exact search term. When more than one are used though, it seems fair that they are treated as delimiters of an exact search term.

Screenshots or Additional Context

It’s not a big deal, but it might be good to at least document the behaviour of single quotes or apostrophes.

Browser Details

No response

Exact BookStack Version

v24.05.2 (with some slight modifications, though not on the search)

Originally created by @matthias4217 on GitHub (Aug 23, 2024). ### Describe the Bug When searching for `Subject's terms` (using an apostrophe `U+0027`, for instance, `terms` will be added to the search terms input, while `Subject's` will go in the exact terms one. ![image](https://github.com/user-attachments/assets/aaecb188-b85e-45ef-923e-d0c127af0185) The same happens when using quotes (`"` `U+0022`), but not when using the right single quotation mark (`’` `U+2019`). ### Steps to Reproduce Use a single apostrophe or a quote in a search. ### Expected Behaviour If using a single quote, I think it would be better to internally escape it and not treat it as a delimiter for an exact search term. When more than one are used though, it seems fair that they are treated as delimiters of an exact search term. ### Screenshots or Additional Context It’s not a big deal, but it might be good to at least document the behaviour of single quotes or apostrophes. ### Browser Details _No response_ ### Exact BookStack Version v24.05.2 (with some slight modifications, though not on the search)
OVERLORD added the 🐛 Bug label 2026-02-05 09:26:41 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#4924