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
Using string_extension method capitalize() will trigger a Stack Overflow because of the recursive call to .capitalize() inside.
I believe that's just a small mistake:
/// Capitalize each word inside string/// Example: your name => Your Name, your name => Your nameStringcapitalize() {
if (isEmpty) returnthis;
returnsplit(' ').map((e) => e.capitalize()).join(' ');
}
We should use capitalizeFirst() instead of capitalize().
Good work guys, i like the package !
The text was updated successfully, but these errors were encountered:
Well, I believe that the new version isn't deployed yet on pub.dev @jayeshpansheriya, do u confirm ?
As a fix for now, u can use the git directly to get the package:
Using string_extension method capitalize() will trigger a Stack Overflow because of the recursive call to .capitalize() inside.
I believe that's just a small mistake:
We should use
capitalizeFirst()
instead ofcapitalize()
.Good work guys, i like the package !
The text was updated successfully, but these errors were encountered: