Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Consecutive banned words in a comment text will make this comment text display incorrectly in Moderation section #2908
While testing regular expressions, I tried to change a test existing on
However, when running this test, I found that once I put consecutive banned words, the HTML marking would be placed mistakenly in non-banned words in that comment, like in blank spaces. Please note the
I was trying to understand the problem, and I ended up coding a solution. I'm opening a PR for this solution, please check if it makes sense for you.