mirror of
https://github.com/immich-app/immich.git
synced 2025-01-04 02:46:47 +01:00
fix(mobile): format
This commit is contained in:
parent
053a5235be
commit
0e8d235148
1 changed files with 4 additions and 4 deletions
|
@ -1,9 +1,9 @@
|
||||||
extension StringExtension on String {
|
extension StringExtension on String {
|
||||||
String capitalize() {
|
String capitalize() {
|
||||||
return this
|
return split(" ")
|
||||||
.split(" ")
|
.map(
|
||||||
.map((str) =>
|
(str) => str.isEmpty ? str : str[0].toUpperCase() + str.substring(1),
|
||||||
str.isEmpty ? str : str[0].toUpperCase() + str.substring(1))
|
)
|
||||||
.join(" ");
|
.join(" ");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue