Skip to content

Commit afdfc4f

Browse files
committed
Use isLegitSymbolForFunctionName() instead of regex #485
1 parent 780c43f commit afdfc4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utbot-summary/src/main/kotlin/org/utbot/summary/name/NodeConvertor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ class NodeConvertor {
358358
*/
359359
private fun postProcessName(name: String) =
360360
name.split(".", "(", ")", ",")
361-
.joinToString("") { it.capitalize().replace("[^a-zA-Z0-9_$]".toRegex(), "") }
361+
.joinToString("") { it -> it.capitalize().filter { isLegitSymbolForFunctionName(it) } }
362362

363363
/**
364364
* Converts Javaparser BinaryOperator and all of its children into a String

0 commit comments

Comments
 (0)