adamsaghy commented on code in PR #6116:
URL: https://github.com/apache/fineract/pull/6116#discussion_r3639960986


##########
fineract-core/src/main/java/org/apache/fineract/portfolio/search/service/SearchUtil.java:
##########
@@ -323,4 +342,28 @@ public String camelToSnake(final String camelStr) {
         return camelStr == null ? null
                 : camelStr.replaceAll("([A-Z]+)([A-Z][a-z])", 
"$1_$2").replaceAll("([a-z])([A-Z])", "$1_$2").toLowerCase();
     }
+
+    /**
+     * Extracts numeric ID from strings ending with "(id)" format. Example: 
"Permanent (32)" -> "32" If the string
+     * doesn't match the pattern, returns the original value.
+     *
+     * @param value
+     *            The string value that may contain an ID in parentheses
+     * @return The extracted ID as a string, or the original value if no ID 
pattern is found
+     */
+    private static String extractIdFromDisplayValue(String value) {

Review Comment:
   Do we really need this magic?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to