You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by is...@apache.org on 2021/06/23 01:09:44 UTC

[airavata-custos-portal] branch master updated: Enable "localhost" for domains

This is an automated email from the ASF dual-hosted git repository.

isjarana pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata-custos-portal.git


The following commit(s) were added to refs/heads/master by this push:
     new 76a0d11  Enable "localhost" for domains
     new 897ed4f  Merge pull request #93 from dinukadesilva/gh-92-fix-domain-validations
76a0d11 is described below

commit 76a0d11186cc125be30510ca9c66e9c83fad9909
Author: Dinuka De Silva <l....@gmail.com>
AuthorDate: Tue Jun 22 20:59:14 2021 -0400

    Enable "localhost" for domains
---
 custos-demo-gateway/src/components/validation-regex.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/custos-demo-gateway/src/components/validation-regex.js b/custos-demo-gateway/src/components/validation-regex.js
index 841adff..291546b 100644
--- a/custos-demo-gateway/src/components/validation-regex.js
+++ b/custos-demo-gateway/src/components/validation-regex.js
@@ -1,5 +1,5 @@
 export const VALIDATION_REGEX_EMAIL = /^[a-zA-Z0-9_.-]+@[a-zA-Z0-9_-]+\.[a-zA-Z0-9_.-]+$/;
 export const VALIDATION_REGEX_URI = /^(http|https):\/\/.+$/;
-export const VALIDATION_REGEX_DOMAIN = /^[a-zA-Z0-9_-]+\.[a-zA-Z0-9_.-]+$/;
+export const VALIDATION_REGEX_DOMAIN = /(localhost|^[a-zA-Z0-9_-]+\.[a-zA-Z0-9_.-]+$)/;
 export const VALIDATION_REGEX_FIRST_NAME = /^[ ,.a-zA-Z0-9_-]{1,50}$/;
 export const VALIDATION_REGEX_LAST_NAME = /^[ ,.a-zA-Z0-9_-]{1,50}$/;
\ No newline at end of file