mirror of
https://github.com/frappe/bench.git
synced 2025-02-03 11:28:24 +00:00
fix: PY2 compatible regex
This commit is contained in:
parent
7f93674c52
commit
4ae8ae21f7
@ -74,7 +74,7 @@ def check_url(url, raise_err=True):
|
|||||||
def is_git_url(url):
|
def is_git_url(url):
|
||||||
# modified to allow without the tailing .git from https://github.com/jonschlinkert/is-git-url.git
|
# 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._]+?)$"
|
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='.'):
|
def get_excluded_apps(bench_path='.'):
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user