Project

General

Profile

« Previous | Next » 

Revision 6625

dict2redmine: url_term(): Also match any namespace that's part of the term

View differences:

dict2redmine
17 17
def simplify_url(url): return re.sub(r'\(.*?\)', r'', url)
18 18

  
19 19
def url_term(url):
20
    match = re.search(r'[\w-]+$', url)
20
    match = re.search(r'[\w:-]+$', url)
21 21
    assert match
22 22
    return match.group(0)
23 23

  

Also available in: Unified diff