From 4ae8ae21f791b6a15266c1c0eb5ea870bd77895f Mon Sep 17 00:00:00 2001 From: Gavin D'souza Date: Thu, 14 May 2020 20:12:26 +0530 Subject: [PATCH] fix: PY2 compatible regex --- bench/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bench/app.py b/bench/app.py index d3f01f0d..0f95932e 100755 --- a/bench/app.py +++ b/bench/app.py @@ -74,7 +74,7 @@ def check_url(url, raise_err=True): def is_git_url(url): # modified to allow without the tailing .git from https://github.com/jonschlinkert/is-git-url.git pattern = r"(?:git|ssh|https?|git@[-\w.]+):(\/\/)?(.*?)(\.git)?(\/?|\#[-\d\w._]+?)$" - return bool(re.fullmatch(pattern, url)) + return bool(re.match(pattern, url)) def get_excluded_apps(bench_path='.'): try: