You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@skywalking.apache.org by ke...@apache.org on 2020/12/24 14:42:37 UTC

[skywalking-eyes] 02/05: Ignore cases when comment indicators contain alphabets

This is an automated email from the ASF dual-hosted git repository.

kezhenxu94 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-eyes.git

commit bdfdff0332b3c06d3392b77d9e2de5f688add5b6
Author: kezhenxu94 <ke...@apache.org>
AuthorDate: Thu Dec 24 21:47:58 2020 +0800

    Ignore cases when comment indicators contain alphabets
---
 license-eye/pkg/license/norm.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/license-eye/pkg/license/norm.go b/license-eye/pkg/license/norm.go
index 771f2b2..6cd5612 100644
--- a/license-eye/pkg/license/norm.go
+++ b/license-eye/pkg/license/norm.go
@@ -56,8 +56,8 @@ var (
 		regexp.MustCompile(`(?m)^\s*{-+`), // {-
 		regexp.MustCompile(`(?m)^\s*-}+`), // -}
 
-		regexp.MustCompile(`(?m)^\s*::`),   // ::
-		regexp.MustCompile(`(?m)^\s*@REM`), // @REM
+		regexp.MustCompile(`(?m)^\s*::`),    // ::
+		regexp.MustCompile(`(?mi)^\s*@REM`), // @REM
 	}
 
 	flattenSpace = regexp.MustCompile(`\s+`)