From 7ea52c13a53c6bc1bfb94134c7e86c78729b0539 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Tue, 16 Jul 2024 21:19:49 +0200 Subject: [PATCH] StringUtil::toCapitalized() will now capitalize characters following the ( and [ characters --- es-core/src/utils/StringUtil.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/es-core/src/utils/StringUtil.cpp b/es-core/src/utils/StringUtil.cpp index d53242bcf..5efd40414 100644 --- a/es-core/src/utils/StringUtil.cpp +++ b/es-core/src/utils/StringUtil.cpp @@ -569,7 +569,8 @@ namespace Utils stringCapitalized += chr; } - if (chr == " " || chr == "-" || chr == "\n" || chr == "\r" || chr == "\t") + if (chr == " " || chr == "-" || chr == "\n" || chr == "\r" || chr == "\t" || + chr == "(" || chr == "[") capitalize = true; }