Project

General

Profile

« Previous | Next » 

Revision 6638

dict2redmine: url_comment_text(): Interpret a URL comment containing just a number as a sort order without text

View differences:

bin/dict2redmine
17 17
def url_comment_text(comment):
18 18
    if not comment: return comment
19 19
    
20
    match = re.match(r'^\((?:\d+:)?(.*?)\)$', comment)
20
    match = re.match(r'^\(\d*:?(.*?)\)$', comment)
21 21
    assert match
22 22
    text, = match.groups()
23 23
    return text

Also available in: Unified diff