mirror of
https://github.com/ditkrg/todo-to-issue-action.git
synced 2026-01-22 22:06:43 +00:00
Match colon and/or space after label
This commit is contained in:
parent
5d9e95c595
commit
0c4d00ffea
4
main.py
4
main.py
@ -45,7 +45,7 @@ def main():
|
||||
line_num_pattern = re.compile(r'(?<=\+).+')
|
||||
addition_pattern = re.compile(r'(?<=^\+).*')
|
||||
deletion_pattern = re.compile(r'(?<=^-).*')
|
||||
todo_pattern = re.compile(r'(?<=' + label + r'\s).+')
|
||||
todo_pattern = re.compile(r'(?<=' + label + r'[\s:]).+')
|
||||
comment_pattern = re.compile(r'(?<=' + comment_marker + r'\s).+')
|
||||
|
||||
new_issues = []
|
||||
@ -93,7 +93,7 @@ def main():
|
||||
if todo_search:
|
||||
# Start recording so we can capture multiline TODOs.
|
||||
previous_line_was_todo = True
|
||||
todo = todo_search.group(0)
|
||||
todo = todo_search.group(0).lstrip()
|
||||
if curr_issue:
|
||||
curr_issue['hunk'] = lines
|
||||
new_issues.append(curr_issue)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user