diff --git a/xbmcswift2/urls.py b/xbmcswift2/urls.py index ca19bdd..8977540 100644 --- a/xbmcswift2/urls.py +++ b/xbmcswift2/urls.py @@ -50,7 +50,7 @@ def __init__(self, url_rule, view_func, name, options): self._url_format = self._url_rule.replace('<', '{').replace('>', '}') # 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 + '$')