mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: Check for word boundaries with censored words.
This commit is contained in:
parent
80183f04f5
commit
3b38667274
2 changed files with 5 additions and 2 deletions
|
@ -485,4 +485,7 @@ test("censoring", function() {
|
|||
cooked("aw shucks, golly gee whiz.",
|
||||
"<p>aw ■■■■■■, golly gee ■■■■.</p>",
|
||||
"it censors words in the Site Settings");
|
||||
cooked("you are a whizzard! I love cheesewhiz. Whiz.",
|
||||
"<p>you are a whizzard! I love cheesewhiz. ■■■■.</p>",
|
||||
"it doesn't censor words unless they have boundaries.");
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue