-
Bug
-
Resolution: Done
-
High
-
Frankfurt Release
-
None
In method public static String toLowerHyphen(String inStr) of
sli/provider/src/main/java/org/onap/ccsdk/sli/core/sli/provider/MdsalHelper.java
Using the following statements to do the format conversion:
String regex = "(([a-z0-9])([A-Z]))"; String replacement = "$2-$3"; String retval = str.replaceAll(regex, replacement).toLowerCase();
It works well for the case such as UpgradePreCheck.
But when there are two continuous capital letters, such as downloadNESw, it will convert to download-nesw, and the correct format is download-n-e-sw.