commit | ec88b7d850018c8983f87729ea88549e100c5c82 | [log] [tgz] |
---|---|---|
author | Zhenxu Ke <kezhenxu94@apache.org> | Sat Jan 30 14:58:37 2021 +0800 |
committer | GitHub <noreply@github.com> | Sat Jan 30 14:58:37 2021 +0800 |
tree | f06300340523cab0818b7146436ac4b82d356174 | |
parent | 9bd5feb86b5817aa6072b008f9866a2c3bbc8587 [diff] |
fix: @ is optional in bat comment (#21)
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 @@ 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+`)