diff options
author | Felix Lange <fjl@twurst.com> | 2015-07-07 10:28:01 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2015-07-07 20:12:44 +0800 |
commit | 7bb77c02da1cc9cc02caf5733aac1eef6c9d5eca (patch) | |
tree | e864e6449b44a28972d2b13c09b7650e04e8c548 | |
parent | ea54283b304a1d308141d21e3ef75b7de0f4519d (diff) | |
download | go-tangerine-7bb77c02da1cc9cc02caf5733aac1eef6c9d5eca.tar.gz go-tangerine-7bb77c02da1cc9cc02caf5733aac1eef6c9d5eca.tar.zst go-tangerine-7bb77c02da1cc9cc02caf5733aac1eef6c9d5eca.zip |
build: change license regexp for // comments
-rw-r--r-- | build/update-license.go | 2 |
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" |