mirror of
https://github.com/gravitational/teleport
synced 2024-10-21 01:34:01 +00:00
Relax regex expression in ssh login input box to support ip6
This commit is contained in:
parent
32b84e6765
commit
0821e05cc6
|
@ -3941,7 +3941,7 @@ limitations under the License.
|
|||
|
||||
|
||||
|
||||
var SSH_STR_REGEX = /(^\w+@(\w|\.|-)+(:\d+)*$)|(^$)/;
|
||||
var SSH_STR_REGEX = /(^\w+@(\S+)$)/;
|
||||
var PLACEHOLDER_TEXT = 'login@host';
|
||||
var DEFAULT_HISTORY_INDEX = -1;
|
||||
|
2
web/dist/index.html
vendored
2
web/dist/index.html
vendored
|
@ -11,5 +11,5 @@
|
|||
<link rel="shortcut icon" href="/web/app/favicon.ico"><link href="/web/app/styles.f0d4056308cafd8d7d57.css" rel="stylesheet"></head>
|
||||
<body class="grv">
|
||||
<div id="app"></div>
|
||||
<script type="text/javascript" src="/web/app/vendor.4fff3bddf7923b758c87.js"></script><script type="text/javascript" src="/web/app/app.d41eb2aa77cdeb4278a6.js"></script></body>
|
||||
<script type="text/javascript" src="/web/app/vendor.4fff3bddf7923b758c87.js"></script><script type="text/javascript" src="/web/app/app.58735cf75c867a30fb27.js"></script></body>
|
||||
</html>
|
||||
|
|
|
@ -17,7 +17,7 @@ limitations under the License.
|
|||
import React, { PropTypes } from 'react';
|
||||
import classnames from 'classnames';
|
||||
|
||||
const SSH_STR_REGEX = /(^\w+@(\w|\.|-)+(:\d+)*$)|(^$)/;
|
||||
const SSH_STR_REGEX = /(^\w+@(\S+)$)/;
|
||||
const PLACEHOLDER_TEXT = 'login@host';
|
||||
const DEFAULT_HISTORY_INDEX = -1;
|
||||
|
||||
|
|
Loading…
Reference in a new issue