Skip to content

Commit fdd2173

Browse files
committed
Make sure review commands are ignored in html blocks
1 parent 7f122c8 commit fdd2173

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

parser/src/command.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,13 @@ fn review_errors() {
350350
#[test]
351351
fn review_ignored() {
352352
// Checks for things that shouldn't be detected.
353-
for input in ["r", "reviewer? abc", "r foo"] {
353+
for input in [
354+
"r",
355+
"reviewer? abc",
356+
"r foo",
357+
"<a>\n r? @bot\n</a>",
358+
"<!--\nr? foo\n-->",
359+
] {
354360
let mut input = Input::new(input, vec!["bot"]);
355361
assert_eq!(input.next(), None);
356362
}

0 commit comments

Comments
 (0)