File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/commonMain/kotlin/spp.protocol/utils Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -51,11 +51,13 @@ object ArtifactNameUtils {
5151 }
5252
5353 fun getShortFunctionSignature (qualifiedName : String ): String {
54- return getFunctionSignature(qualifiedName).replace(" \\ B\\ w+(\\ .)" .toRegex(), " $1" )
54+ return getFunctionSignature(qualifiedName.substringBefore(" #" ))
55+ .replace(" \\ B\\ w+(\\ .)" .toRegex(), " $1" )
5556 }
5657
5758 fun getFunctionSignature (qualifiedName : String ): String {
58- val withoutClassName = qualifiedName.replace(getQualifiedClassName(qualifiedName)!! , " " )
59+ val withoutClassName = qualifiedName.substringBefore(" #" )
60+ .replace(getQualifiedClassName(qualifiedName.substringBefore(" #" ))!! , " " )
5961 return withoutClassName.substring(
6062 withoutClassName.substring(0 , withoutClassName.indexOf(" (" )).lastIndexOf(" ?" ) + 2
6163 )
You can’t perform that action at this time.
0 commit comments