Closed Brickster closed 10 years ago
The issue was that the regex was ungreedy when capturing the final two characters (\ or __). The initial implementation was supposed to capture the innermost bold characters. The regex to fix this issue was simpler when capturing the outermost so that's the expected output now. The tests have been updated to reflect this fact.
When trying to convert bolds in
the output is
The expected result would either convert the inner two underscores or the outer two.