From d421ae9031451a6a74f9944762643720bb6b33fc Mon Sep 17 00:00:00 2001 From: unknown <55nknown@pm.me> Date: Thu, 2 Sep 2021 16:59:57 +0200 Subject: [PATCH] capitalize fix --- filcnaplo/lib/utils/format.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filcnaplo/lib/utils/format.dart b/filcnaplo/lib/utils/format.dart index f4bc49b..e03dd25 100644 --- a/filcnaplo/lib/utils/format.dart +++ b/filcnaplo/lib/utils/format.dart @@ -18,7 +18,7 @@ extension StringFormatUtils on String { String capital() => this.length > 0 ? this[0].toUpperCase() + this.substring(1) : ""; - String capitalize() => this.split(" ").map((w) => this.capital()).join(" "); + String capitalize() => this.split(" ").map((w) => w.capital()).join(" "); String escapeHtml() { String htmlString = this;