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


The following commit(s) were added to refs/heads/main by this push:
     new ec88b7d  fix: @ is optional in bat comment (#21)
ec88b7d is described below

commit ec88b7d850018c8983f87729ea88549e100c5c82
Author: Zhenxu Ke <[email protected]>
AuthorDate: Sat Jan 30 14:58:37 2021 +0800

    fix: @ is optional in bat comment (#21)
---
 pkg/license/norm.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pkg/license/norm.go b/pkg/license/norm.go
index 1e723f3..0bc056b 100644
--- a/pkg/license/norm.go
+++ b/pkg/license/norm.go
@@ -58,8 +58,8 @@ var (
                regexp.MustCompile(`(?m)^\s*{-+`), // {-
                regexp.MustCompile(`(?m)^\s*-}+`), // -}
 
-               regexp.MustCompile(`(?m)^\s*::`),    // ::
-               regexp.MustCompile(`(?mi)^\s*@REM`), // @REM
+               regexp.MustCompile(`(?m)^\s*::`),     // ::
+               regexp.MustCompile(`(?mi)^\s*@?REM`), // @REM
        }
 
        flattenSpace = regexp.MustCompile(`\s+`)

Reply via email to