[rdct-tests] fix not attached files to TC metadata in case of agents id have difference in digits

GitOrigin-RevId: 3401e5a23e51abbcf0cde267be27617c10f98634
This commit is contained in:
Anastasia Katsman
2025-06-10 15:37:10 +02:00
committed by intellij-monorepo-bot
parent a761c271a9
commit bbb71bfe65

View File

@@ -8,9 +8,9 @@ private val maxActionLength = 30
@ApiStatus.Internal
fun getAsPartOfArtifactsFileName(text: String): String =
text
.replace("[^a-zA-Z.]".toRegex(), "_")
fun getAsPartOfArtifactsFileName(agentId: String): String =
agentId
.replace("[^a-zA-Z0-9.]".toRegex(), "_")
.replace("_+".toRegex(), "_")
@ApiStatus.Internal