Skip to content

Commit b61468b

Browse files
committed
escape dots in sshTempFilePathExpr
1 parent 4997f50 commit b61468b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sshConfig.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { SSHConfig } from "./sshConfig"
66
// setting it to a different path makes it easier to test
77
// and makes mistakes abundantly clear.
88
const sshFilePath = "/Path/To/UserHomeDir/.sshConfigDir/sshConfigFile"
9-
const sshTempFilePathExpr = `^/Path/To/UserHomeDir/.sshConfigDir/.sshConfigFile.vscode-coder-tmp.[a-z0-9]+$`
9+
const sshTempFilePathExpr = `^/Path/To/UserHomeDir/\\.sshConfigDir/\\.sshConfigFile\\.vscode-coder-tmp\\.[a-z0-9]+$`
1010

1111
const mockFileSystem = {
1212
mkdir: vi.fn(),

0 commit comments

Comments
 (0)