maheshmnj / vocabhub

An app to help you build your vocabulary. This app contains 800+ curated GRE words
https://vocabhub.web.app/
Apache License 2.0
46 stars 10 forks source link

capitalize extension logic is wrong #4

Closed maheshmnj closed 1 year ago

maheshmnj commented 2 years ago

Describe the bug The logic to capitalize a string is wrong

Actual Results

String x= "hello";
x.capitalize(); /// returnsHello

Expected Results

String x= "hEllo";
x.capitalize(); /// returns Hello

Additional context: This can be seen in the app when adding a synonym if user enters "hEllO" on submitting "HEllO" is submitted

maheshmnj commented 1 year ago

fixed in https://github.com/maheshmnj/vocabhub/commit/bab033a7207ab2cf83c14cc6905cb9ec0bc749d5