chore(mobile): Capitalize Places cities in app (#2985)

This commit is contained in:
Alex Elkins 2023-06-27 13:26:23 -04:00 committed by GitHub
parent de42ebf3d8
commit 053a5235be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 4 deletions

View file

@ -0,0 +1,9 @@
extension StringExtension on String {
String capitalize() {
return this
.split(" ")
.map((str) =>
str.isEmpty ? str : str[0].toUpperCase() + str.substring(1))
.join(" ");
}
}