BookStack icon indicating copy to clipboard operation
BookStack copied to clipboard

Single apostrophes and quotes change search behaviour

Open matthias4217 opened this issue 1 year ago • 0 comments

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)

matthias4217 avatar Aug 23 '24 15:08 matthias4217