aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-07-07 10:28:01 +0800
committerFelix Lange <fjl@twurst.com>2015-07-07 20:12:44 +0800
commit7bb77c02da1cc9cc02caf5733aac1eef6c9d5eca (patch)
treee864e6449b44a28972d2b13c09b7650e04e8c548 /build
parentea54283b304a1d308141d21e3ef75b7de0f4519d (diff)
downloaddexon-7bb77c02da1cc9cc02caf5733aac1eef6c9d5eca.tar
dexon-7bb77c02da1cc9cc02caf5733aac1eef6c9d5eca.tar.gz
dexon-7bb77c02da1cc9cc02caf5733aac1eef6c9d5eca.tar.bz2
dexon-7bb77c02da1cc9cc02caf5733aac1eef6c9d5eca.tar.lz
dexon-7bb77c02da1cc9cc02caf5733aac1eef6c9d5eca.tar.xz
dexon-7bb77c02da1cc9cc02caf5733aac1eef6c9d5eca.tar.zst
dexon-7bb77c02da1cc9cc02caf5733aac1eef6c9d5eca.zip
build: change license regexp for // comments
Diffstat (limited to 'build')
-rw-r--r--build/update-license.go2
1 files changed, 1 insertions, 1 deletions
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"