mirror of
https://github.com/coder/coder.git
synced 2025-07-09 11:45:56 +00:00
fix: correct escaping in test regex (#10138)
Fixes regex escaping. Spotted during a code read.
This commit is contained in:
@ -356,7 +356,7 @@ func TestAgent_Session_TTY_MOTD(t *testing.T) {
|
||||
Enabled: true,
|
||||
Message: "\n\n\n\n\n\nbanner\n\n\n\n\n\n",
|
||||
},
|
||||
expectedRe: regexp.MustCompile("([^\n\r]|^)banner\r\n\r\n[^\r\n]"),
|
||||
expectedRe: regexp.MustCompile(`([^\n\r]|^)banner\r\n\r\n[^\r\n]`),
|
||||
},
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user