Revision 6638
Added by Aaron Marcuse-Kubitza about 12 years ago
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
dict2redmine: url_comment_text(): Interpret a URL comment containing just a number as a sort order without text