

def match_url(self, request):
    '\n        match url determines if this is selected\n        '
    matched = False
    if self.exact_url:
        if re.match(('%s$' % (self.url,)), request.path):
            matched = True
    elif re.match(('%s' % self.url), matched.path):
        matched = True
    return matched

dataset/ETHPy150Open borgstrom/django-simple-menu/menu/menu.py MenuItem.match_url/VarMisuse@67/95 `request`->`matched`