Skip to content

Commit 1337e34

Browse files
committed
Fixed matching of remote URLs containing multiple dots in path #254
1 parent 2a5f3e3 commit 1337e34

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

mbed/mbed.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636

3737
# Application version
38-
ver = '0.8.1'
38+
ver = '0.8.2'
3939

4040
# Default paths to Mercurial and Git
4141
hg_cmd = 'hg'
@@ -94,7 +94,7 @@
9494
# reference to local (unpublished) repo - dir#rev
9595
regex_local_ref = r'^([\w.+-][\w./+-]*?)/?(?:#(.*))?$'
9696
# reference to repo - url#rev
97-
regex_url_ref = r'^(.*/([\w+-]+)(?:\.\w+)?)/?(?:#(.*))?$'
97+
regex_url_ref = r'^(.*/([\w.+-]+)(?:\.\w+)?)/?(?:#(.*))?$'
9898

9999
# git url (no #rev)
100100
regex_git_url = r'^(git@|git\://|ssh\://|https?\://)([^/:]+)[:/](.+?)(\.git|\/?)$'
@@ -103,6 +103,7 @@
103103

104104
# mbed url is subset of hg. mbed doesn't support ssh transport
105105
regex_mbed_url = r'^(https?)://([\w\-\.]*mbed\.(co\.uk|org|com))/(users|teams)/([\w\-]{1,32})/(repos|code)/([\w\-]+)/?$'
106+
# mbed sdk builds url
106107
regex_build_url = r'^(https?://([\w\-\.]*mbed\.(co\.uk|org|com))/(users|teams)/([\w\-]{1,32})/(repos|code)/([\w\-]+))/builds/?([\w\-]{6,40}|tip)?/?$'
107108

108109
# base url for all mbed related repos (used as sort of index)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def read(fname):
1919
setup(
2020
name="mbed-cli",
2121
packages=["mbed"],
22-
version="0.8.1",
22+
version="0.8.2",
2323
url='http://github.com/ARMmbed/mbed-cli',
2424
author='ARM mbed',
2525
author_email='[email protected]',

0 commit comments

Comments
 (0)