Open LandonSchropp opened 4 years ago
Welcome to Voca's GitHub repo!
When title casing an abbreviation, I would expect the abbreviation to be preserved.
voca.titleCase("HTML is Awesome") // => "HTML is Awesome!" voca.titleCase("JS is Cool") // => "JS is Cool"
I expect Voca's titleCase function to respect all title rules. Maybe this warrants a separate function or an additional option?
titleCase
Instead, Voca converts these words
voca.titleCase("HTML is Awesome") // => "Html is Awesome!" voca.titleCase("JS is Cool") // => "Js is Cool"
Call the functions as described above.
Browser/OS type: macOS 10.15.3 Node version: 13
Welcome to Voca's GitHub repo!
Expected behavior :smile_cat:
When title casing an abbreviation, I would expect the abbreviation to be preserved.
I expect Voca's
titleCase
function to respect all title rules. Maybe this warrants a separate function or an additional option?Actual behavior :crying_cat_face:
Instead, Voca converts these words
Steps to reproduce :construction_worker:
Call the functions as described above.
Technical details: :wrench:
Browser/OS type: macOS 10.15.3 Node version: 13