Skip to content

Quotations containing non-word characters end up backwards at the start #52

@mastermaq

Description

@mastermaq

Currently, a quotation such as:

"(They) are our trusted and respected neighbours, business partners, and friends," read a press release.

Gets converted into:

”(They) are our trusted and respected neighbours, business partners, and friends,” read a press release.

Note the backwards character at the start.

The issue is on Line 5 of replacements.js. Changing the regex to something like (\W|^)"(\w|\(|') would account for a parenthesis or single quote at the start of a quotation, which is not uncommon. Do you see any other problems with a change like this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions