atom-change-case icon indicating copy to clipboard operation
atom-change-case copied to clipboard

Changing a string to title case removes punctuation

Open alerque opened this issue 9 years ago • 2 comments

I'm working with a language that often has apostrophes in the middle of words, e.g. tanrı'nın. When title casing this word in a string the plugin is changing the apostrophe to a space and capitalizing the orphaned suffix as Tanrı Nın.

Other punctuation such as commas, question marks, etc. also gets removed.

None of the other modes seem to be affected by this issue.

alerque avatar Nov 15 '16 16:11 alerque

Here's the "reasoning" behind why this happens https://github.com/blakeembrey/title-case/issues/3

It requires some work to find a suitable module title casing strings and then some unknown effort to actually take that into use

deiga avatar Nov 15 '16 20:11 deiga

@alerque I've submitted a PR to change-case which resolves this issue, if it gets accepted

deiga avatar Apr 02 '17 09:04 deiga