Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed-os
Diff: neo.py
- Revision:
- 54:3cb9f99bbaaa
- Parent:
- 53:f77f23f3e087
- Child:
- 60:52dc8fcb07d8
- Child:
- 61:5c3f41de9d97
--- a/neo.py Wed Mar 30 17:54:00 2016 -0500
+++ b/neo.py Wed Mar 30 18:10:58 2016 -0500
@@ -189,7 +189,7 @@
def fromurl(cls, url, path=None):
repo = cls()
- m = re.match('^(.*/([+a-zA-Z0-9_-]+)/?)(?:#(.*))?$', url.strip())
+ m = re.match('^(.*/([\w+-]+)(?:\.\w+)?)/?(?:#(.*))?$', url.strip())
repo.name = os.path.basename(path or m.group(2))
repo.path = os.path.abspath(
path or os.path.join(os.getcwd(), repo.name))