Skip to content

Commit 465676f

Browse files
committed
fix indenting issue
1 parent 650c45f commit 465676f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonqCodeTest/CodeWhispererUTGChatManager.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,8 @@ class CodeWhispererUTGChatManager(val project: Project, private val cs: Coroutin
284284
val jobSummary = testGenerationResponse?.testGenerationJob()?.jobSummary()?.trim().orEmpty()
285285

286286
val cleanedPlanSummary = jobSummary
287-
.replace(Regex("^```\\s*"), "") // Remove leading triple backticks
288-
.replace(Regex("\\s*```$"), "") // Remove trailing triple backticks
287+
.replace(Regex("(?m)^\\s*```(?:\\w+)?\\s*"), "") // Removes leading backticks with possible language specifier
288+
.replace(Regex("(?m)\\s*```\\s*$"), "") // Removes trailing backticks
289289
.trim()
290290

291291
val summary = """

0 commit comments

Comments
 (0)