UNPKG
@eightshone/sshman
Version:
latest (0.1.8)
0.1.8
0.1.7
0.1.6
0.1.5
0.1.4
A simple cli ssh manager
github.com/eightshone/shhman
eightshone/shhman
@eightshone/sshman
/
src
/
utils
/
isConnectionString.ts
10 lines
(7 loc)
•
228 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
import
{
CONNECTION_REGEX
}
from
"./consts"
;
function
isConnectionString
(
connection: string
) {
return
(
CONNECTION_REGEX
.
test
(connection) && !connection.
startsWith
(
"auto-save-"
) ); }
export
default
isConnectionString;