Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Title Abbreviations #50

Open
LandonSchropp opened this issue Apr 27, 2020 · 0 comments
Open

Title Abbreviations #50

LandonSchropp opened this issue Apr 27, 2020 · 0 comments

Comments

@LandonSchropp
Copy link

LandonSchropp commented Apr 27, 2020

Welcome to Voca's GitHub repo!

Expected behavior 馃樃

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?

Actual behavior 馃樋

Instead, Voca converts these words

voca.titleCase("HTML is Awesome") // => "Html is Awesome!"
voca.titleCase("JS is Cool") // => "Js is Cool"

Steps to reproduce 馃懛

Call the functions as described above.

Technical details: 馃敡

Browser/OS type: macOS 10.15.3
Node version: 13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant