Skip to content

Commit 42b2a19

Browse files
committed
nit change
1 parent 759854d commit 42b2a19

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -372,15 +372,16 @@ class CodeWhispererUTGChatManager(val project: Project, private val cs: Coroutin
372372
val jobSummary = testGenerationResponse?.testGenerationJob()?.jobSummary()?.trim() ?: ""
373373

374374
val cleanedPlanSummary = jobSummary
375-
.replace(Regex("^```\\s*"), "") // Remove leading triple backticks
376-
.replace(Regex("\\s*```$"), "") // Remove trailing triple backticks
375+
.replace(Regex("^```\\s*"), "") // Remove leading triple backticks
376+
.replace(Regex("\\s*```$"), "") // Remove trailing triple backticks
377377
.trim()
378378

379379
val fullMessage = """
380380
$cleanedPlanSummary
381381
382382
Please see the unit tests generated below. Click 'View Diff' to review the changes in the code editor.
383-
""".trimIndent() // Ensures no extra indentation for the entire message
383+
""".trimIndent() // Ensures no extra indentation for the entire message
384+
384385

385386
val viewDiffMessageId = codeTestChatHelper.addAnswer(
386387
CodeTestChatMessageContent(

0 commit comments

Comments
 (0)