You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for reporting this! 🙌
I looked into the behavior of _.startCase('3d'), and from what I can see, the function is working as designed.
Lodash splits strings into words based on character transitions — including from digits to letters — so '3d' is split into ['3', 'd'], which then becomes '3 D' after capitalization and spacing.
If the goal is to preserve '3d' as a single word (e.g., for abbreviations), that would likely require changes to the words() utility, which could impact other use cases.
Just wanted to share this in case it helps clarify the current behavior.
Something like
startCase("3d")
seems to return3 D
instead of3D
The text was updated successfully, but these errors were encountered: