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

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

commit 1bda1b1fd0e933e95be982e6e760492658f50ae5
Author: kezhenxu94 <[email protected]>
AuthorDate: Sat Jan 30 14:36:04 2021 +0800

    fix: @ is optional in bat comment
---
 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