fix(UI自动化): 修复UI grid配置兼容localhost
This commit is contained in:
parent
a571694b79
commit
2ee9232640
|
@ -84,7 +84,8 @@ export default {
|
|||
isURL(url) {
|
||||
let regEx =
|
||||
/^(http|https):\/\/(([0-9]{1,3}\.){3}[0-9]{1,3}|([0-9a-z_!~*'()-]+\.)*([0-9a-z][0-9a-z-]{0,61})?[0-9a-z]\.[a-z]{2,6})(:[0-9]{1,5})?$/;
|
||||
if (regEx.test(url)) {
|
||||
let localhostRegEx = /^http:\/\/localhost:[0-9]{1,5}$/;
|
||||
if (regEx.test(url) || localhostRegEx.test(url)) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue