mirror of
https://github.com/ditkrg/todo-to-issue-action.git
synced 2026-01-25 07:16:42 +00:00
2
main.py
2
main.py
@@ -404,7 +404,7 @@ class TodoParser(object):
|
||||
for marker in block['markers']:
|
||||
# Check if there are line or block comments.
|
||||
if marker['type'] == 'line':
|
||||
comment_pattern = r'(^[+\-\s]\s*' + marker['pattern'] + '.+$)'
|
||||
comment_pattern = r'(^[+\-\s].*' + marker['pattern'] + '.+$)'
|
||||
comments = re.finditer(comment_pattern, block['hunk'], re.MULTILINE)
|
||||
extracted_comments = []
|
||||
prev_comment = None
|
||||
|
||||
Reference in New Issue
Block a user