Skip to content

Commit

Permalink
Make sure review commands are ignored in html blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Urgau committed Dec 18, 2024
1 parent 7f122c8 commit fdd2173
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion parser/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,13 @@ fn review_errors() {
#[test]
fn review_ignored() {
// Checks for things that shouldn't be detected.
for input in ["r", "reviewer? abc", "r foo"] {
for input in [
"r",
"reviewer? abc",
"r foo",
"<a>\n r? @bot\n</a>",
"<!--\nr? foo\n-->",
] {
let mut input = Input::new(input, vec!["bot"]);
assert_eq!(input.next(), None);
}
Expand Down

0 comments on commit fdd2173

Please sign in to comment.