alstr / todo-to-issue-action

Action that converts TODO comments to GitHub issues on push.
MIT License
630 stars 121 forks source link

issue URL not inserted if issue title contains regex characters #226

Open rgalonso opened 7 hours ago

rgalonso commented 7 hours ago

If the TODO comment's first line (i.e. what will become the issue title) contains any regex characters (for example TODO: fix this (after first fixing issue #34), then the issue URL will not get properly inserted. (The line containing the TODO will just be repeated, as explained by #224/#225.)

This is happening because the re.sub() call which modifies the inserted line is not escaping the title.

rgalonso commented 7 hours ago

@alstr, the solution is already implemented.