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 <[email protected]>
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+`)

Reply via email to