Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PATCH] function arg could be empty, the match rule regex need be updated. #57

Closed
ulion opened this issue Dec 19, 2012 · 1 comment
Closed
Milestone

Comments

@ulion
Copy link
Contributor

ulion commented Dec 19, 2012

Subject: [PATCH] function arg could be empty string, the mache rule regex
 updated.

---
 xbmcswift2/urls.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xbmcswift2/urls.py b/xbmcswift2/urls.py
index ba99cb2..ceefcc3 100644
--- a/xbmcswift2/urls.py
+++ b/xbmcswift2/urls.py
@@ -64,7 +64,7 @@ class UrlRule(object):
             self._defaults = None

         # Make a regex pattern for matching incoming URLs
-        p = self._url_rule.replace('<', '(?P<').replace('>', '>[^/]+?)')
+        p = self._url_rule.replace('<', '(?P<').replace('>', '>[^/]*?)')

         try:
             self._regex = re.compile('^' + p + '$')
-- 
1.8.0
@ulion
Copy link
Contributor Author

ulion commented Dec 31, 2012

close this, and leave the pull request #70 for the issue.

@ulion ulion closed this as completed Dec 31, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant