On Mon, 21 Apr 2025 at 11:21, Michael Paquier <michael@paquier.xyz> wrote:
> Thanks for sharing the command able to spot all these.
I just pushed a few more. The previous regex didn't account for the
duplicate word being on the next line. I dug up the following to find
the ones just committed in 78eda9e26.
ag "\s([a-zA-Z]{2,})[\s*]*\n\1\b"
ag "\s([a-zA-Z]{2,})\n(\s*\*\s*)\1\b"
cd doc
ag "\s([a-zA-Z]{1,})[\s*]*\n\s+\1\b"
David