Skip to content

Commit

Permalink
fix: PY2 compatible regex
Browse files Browse the repository at this point in the history
  • Loading branch information
gavindsouza committed May 14, 2020
1 parent 7f93674 commit 4ae8ae2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bench/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 4ae8ae2

Please sign in to comment.