Relax regex expression in ssh login input box to support ip6

This commit is contained in:
Alexey Kontsevoy 2019-07-17 19:24:32 -04:00
parent 32b84e6765
commit 0821e05cc6
3 changed files with 3 additions and 3 deletions

View file

@ -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
View file

@ -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>

View file

@ -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;