profile
viewpoint

Ask questions"it's" changing to "its"

Hi,

Parsing it's returns its.

Is there any way to make it return it&s instead?

caub/pg-tsquery

Answer questions caub

Hi, oh good point, I think recently we had to do this https://github.com/caub/pg-tsquery/blob/master/index.js#L220 where we replace single quotes by an empty string

We could make the replacement configurable m.groups.word.replace(/'/g, this.singleQuoteReplacer || '') or something

If you have a bit more time that I, maybe make a PR with quicks tests

useful!

Related questions

No questions were found.
source:https://uonfu.com/
Github User Rank List