andrewplummer / Sugar

A Javascript library for working with native objects.
https://sugarjs.com/
MIT License
4.53k stars 305 forks source link

titleize does not take in account addAcronym #674

Open jorgemlopez opened 3 years ago

jorgemlopez commented 3 years ago

Sugar.String.titleize does not format the string following the specified acronym.

Sugar.String.addAcronym("QA"); Sugar.String.titleize("qa_pending")

Expected Output: QA Pending Actual Output: Qa Pending