pair
pair copied to clipboard
Diff detection regex is incorrect
The regex re.search(r'```diff(.*?)```', cr.text, re.DOTALL)"
is searching for a marker that is part of Github's proprietary Markdown syntax to enable code highlighting.
The base prompt is asking for output compatible with the patch command, so pair is not detecting any of the code diffs that I generate unless I start them with "generate a github markdown diff...".
we are seeing multiple issues with the diffs. I guess we should add the "generate a github markdown diff" to the base prompt to make it more clear that we expect this particular prefix.
The prompt is asking for a patch file and pair is applying it with patch
. The regex should be changed to match a patch file.