capitalize fix

This commit is contained in:
unknown 2021-09-02 16:59:57 +02:00
parent c3b79fcb3f
commit d421ae9031
No known key found for this signature in database
GPG Key ID: 1D070E0B09CFB257

View File

@ -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;