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?