Skip to content

Single apostrophes and quotes change search behaviour #5176

@matthias4217

Description

@matthias4217

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions