Show More
@@ -1514,6 +1514,9 b' def get_active_pattern_entries(repo_name' | |||
|
1514 | 1514 | return active_entries |
|
1515 | 1515 | |
|
1516 | 1516 | |
|
1517 | pr_pattern_re = re.compile(r'(?:(?:^!)|(?: !))(\d+)') | |
|
1518 | ||
|
1519 | ||
|
1517 | 1520 | def process_patterns(text_string, repo_name, link_format='html', active_entries=None): |
|
1518 | 1521 | |
|
1519 | 1522 | allowed_formats = ['html', 'rst', 'markdown', |
@@ -1572,7 +1575,7 b' def process_patterns(text_string, repo_n' | |||
|
1572 | 1575 | pr_url_func = partial( |
|
1573 | 1576 | _process_url_func, repo_name=repo_name, entry=pr_entry, uid=None, |
|
1574 | 1577 | link_format=link_format+'+hovercard') |
|
1575 |
new_text = |
|
|
1578 | new_text = pr_pattern_re.sub(pr_url_func, new_text) | |
|
1576 | 1579 | log.debug('processed !pr pattern') |
|
1577 | 1580 | |
|
1578 | 1581 | return new_text, issues_data |
General Comments 0
You need to be logged in to leave comments.
Login now