diff --git a/src/api/templates/plans.html b/src/api/templates/plans.html index 0b2cfeb..293f2e1 100755 --- a/src/api/templates/plans.html +++ b/src/api/templates/plans.html @@ -88,7 +88,7 @@ var id = ( $(this).attr('data-value')) var plan_id = ( $(this).attr('plan-id')) var protocol = window.location.href.match(/^(https|http)/)[0] - var host = window.location.href.match(/^.+\/\/([a-z,-,.]+)\/.+$/)[1] + var host = window.location.href.match(/^.+\/\/([a-z,\-,.]+)\/.+$/)[1] var key = ([protocol,'://',host,'/cloud-view/oauth']).join('') //jx.cloudview.init(host,protocol) $('.auth').slideUp(function(){