From a7e23f42cff3de644baa9203bf8bc4f15f8ed853 Mon Sep 17 00:00:00 2001 From: Smittyvb Date: Sun, 25 Apr 2021 15:37:08 -0400 Subject: [PATCH] Add starting anchor Co-authored-by: Joshua Nelson --- src/tools/tidy/src/features.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/tidy/src/features.rs b/src/tools/tidy/src/features.rs index 24c98b54a98f4..b14b5aeb57236 100644 --- a/src/tools/tidy/src/features.rs +++ b/src/tools/tidy/src/features.rs @@ -425,7 +425,7 @@ fn map_lib_features( } lazy_static::lazy_static! { - static ref COMMENT_LINE: Regex = Regex::new(r"\s*//").unwrap(); + static ref COMMENT_LINE: Regex = Regex::new(r"^\s*//").unwrap(); } // exclude commented out lines if COMMENT_LINE.is_match(line) {