From 0c15cf007fce8967b04dd7f658e4217568abf915 Mon Sep 17 00:00:00 2001 From: Nicolas Adment <39568358+nadment@users.noreply.github.com> Date: Thu, 1 Feb 2024 21:04:08 +0100 Subject: [PATCH] Change for String Operation (INITCAP) to also convert the rest of each word to lower case #3538 --- core/src/main/java/org/apache/hop/core/row/ValueDataUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/apache/hop/core/row/ValueDataUtil.java b/core/src/main/java/org/apache/hop/core/row/ValueDataUtil.java index 2bae3ee6676..8f6ea912916 100644 --- a/core/src/main/java/org/apache/hop/core/row/ValueDataUtil.java +++ b/core/src/main/java/org/apache/hop/core/row/ValueDataUtil.java @@ -206,7 +206,7 @@ public static String initCap(IValueMeta metaA, Object dataA) { if (dataA == null) { return null; } - return WordUtils.capitalize(dataA.toString(), new char[] {' ', '_', ',', ':', ';', '-'}); + return WordUtils.capitalizeFully(dataA.toString(), new char[] {' ', '_', ',', ':', ';', '-'}); } public static String upperCase(IValueMeta metaA, Object dataA) {