Skip to content

Commit b039dc6

Browse files
authored
fix: correct escaping in test regex (#10138)
Fixes regex escaping. Spotted during a code read.
1 parent 9c098b2 commit b039dc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

agent/agent_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ func TestAgent_Session_TTY_MOTD(t *testing.T) {
356356
Enabled: true,
357357
Message: "\n\n\n\n\n\nbanner\n\n\n\n\n\n",
358358
},
359-
expectedRe: regexp.MustCompile("([^\n\r]|^)banner\r\n\r\n[^\r\n]"),
359+
expectedRe: regexp.MustCompile(`([^\n\r]|^)banner\r\n\r\n[^\r\n]`),
360360
},
361361
}
362362

0 commit comments

Comments
 (0)