From 7bb77c02da1cc9cc02caf5733aac1eef6c9d5eca Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Tue, 7 Jul 2015 04:28:01 +0200 Subject: build: change license regexp for // comments --- build/update-license.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build/update-license.go') diff --git a/build/update-license.go b/build/update-license.go index 5307f12ae..ad7aad394 100644 --- a/build/update-license.go +++ b/build/update-license.go @@ -54,7 +54,7 @@ var ( // this regexp must match the entire license comment at the // beginning of each file. - licenseCommentRE = regexp.MustCompile(`(?s)^/\*\s*(Copyright|This file is part of) .*?\*/\n*`) + licenseCommentRE = regexp.MustCompile(`^//\s*(Copyright|This file is part of).*?\n(?://.*?\n)*\n*`) // this text appears at the start of AUTHORS authorsFileHeader = "# This is the official list of go-ethereum authors for copyright purposes.\n\n" -- cgit