From fdd2173a9f2a3213a62597cd4e327fc767818ebe Mon Sep 17 00:00:00 2001 From: Urgau Date: Wed, 18 Dec 2024 20:43:08 +0100 Subject: [PATCH] Make sure review commands are ignored in html blocks --- parser/src/command.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/parser/src/command.rs b/parser/src/command.rs index 2e645863..226aa7d9 100644 --- a/parser/src/command.rs +++ b/parser/src/command.rs @@ -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", + "\n r? @bot\n", + "", + ] { let mut input = Input::new(input, vec!["bot"]); assert_eq!(input.next(), None); }