diff options
| author | Smittyvb <me@smitop.com> | 2021-04-25 15:37:08 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-25 15:37:08 -0400 |
| commit | a7e23f42cff3de644baa9203bf8bc4f15f8ed853 (patch) | |
| tree | ecb38b99c5fa8f212d9f29cbc7d554c178b9aa79 | |
| parent | e8a143a7383e4c494c64e67a39203023a80a545f (diff) | |
| download | rust-a7e23f42cff3de644baa9203bf8bc4f15f8ed853.tar.gz rust-a7e23f42cff3de644baa9203bf8bc4f15f8ed853.zip | |
Add starting anchor
Co-authored-by: Joshua Nelson <joshua@yottadb.com>
| -rw-r--r-- | src/tools/tidy/src/features.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/tidy/src/features.rs b/src/tools/tidy/src/features.rs index 24c98b54a98..b14b5aeb572 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) { |
