Skip to content

Commit 7bb77c0

Browse files
committed
build: change license regexp for // comments
1 parent ea54283 commit 7bb77c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/update-license.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ var (
5454

5555
// this regexp must match the entire license comment at the
5656
// beginning of each file.
57-
licenseCommentRE = regexp.MustCompile(`(?s)^/\*\s*(Copyright|This file is part of) .*?\*/\n*`)
57+
licenseCommentRE = regexp.MustCompile(`^//\s*(Copyright|This file is part of).*?\n(?://.*?\n)*\n*`)
5858

5959
// this text appears at the start of AUTHORS
6060
authorsFileHeader = "# This is the official list of go-ethereum authors for copyright purposes.\n\n"

0 commit comments

Comments
 (0)