2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-24 07:28:25 +00:00

fix: PY2 compatible regex

This commit is contained in:
Gavin D'souza 2020-05-14 20:12:26 +05:30
parent 7f93674c52
commit 4ae8ae21f7

View File

@ -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: