You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by li...@apache.org on 2022/11/08 07:17:00 UTC

[incubator-devlake] branch main updated: fix: support github repository with dot(.) char (#3695)

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

likyh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/main by this push:
     new 876e69b1 fix: support github repository with dot(.) char (#3695)
876e69b1 is described below

commit 876e69b125e6107d3393afeb36bc07ca4d7be936
Author: Ji Bin <ma...@live.com>
AuthorDate: Tue Nov 8 15:16:55 2022 +0800

    fix: support github repository with dot(.) char (#3695)
    
    fix pattern matches repository name contains a dot
    
    Closes: #3620
---
 config-ui/src/hooks/useBlueprintValidation.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config-ui/src/hooks/useBlueprintValidation.jsx b/config-ui/src/hooks/useBlueprintValidation.jsx
index 7c9118f0..4c658236 100644
--- a/config-ui/src/hooks/useBlueprintValidation.jsx
+++ b/config-ui/src/hooks/useBlueprintValidation.jsx
@@ -90,7 +90,7 @@ function useBlueprintValidation({
   }, [])
 
   const validateRepositoryName = useCallback((projects = []) => {
-    const repoRegExp = /([a-z0-9_-]){2,}\/([a-z0-9_-]){2,}$/gi
+    const repoRegExp = /([a-z0-9_-]){2,}\/([.a-z0-9_-]){2,}$/gi
     return projects.every((p) => p.value.match(repoRegExp))
   }, [])