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

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

commit a56e941983b9813919a4c665c095e2a9b8521ecb
Author: kezhenxu94 <[email protected]>
AuthorDate: Mon Sep 4 19:09:13 2023 +0800

    Add `|` as comment indicator
---
 pkg/license/norm.go | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/pkg/license/norm.go b/pkg/license/norm.go
index c01a8d9..c9761d5 100644
--- a/pkg/license/norm.go
+++ b/pkg/license/norm.go
@@ -70,6 +70,8 @@ var (
                regexp.MustCompile(`(?m)^\s*{\*+`),   // {*
                regexp.MustCompile(`(?m)^\s*\*+}`),   // *}
                regexp.MustCompile(`(?m)^\s*'+`),     // '
+
+               regexp.MustCompile(`(?m)^\s*\|+`), // '
        }
 
        flattenSpace = regexp.MustCompile(`\s+`)

Reply via email to