gui, authors: Remove additional bot names (#8333)
Skip Syncthing*Automation in authors list as well.
This commit is contained in:
+9
-3
@@ -28,10 +28,16 @@ import (
|
||||
const htmlFile = "gui/default/syncthing/core/aboutModalView.html"
|
||||
|
||||
var (
|
||||
nicknameRe = regexp.MustCompile(`\(([^\s]*)\)`)
|
||||
emailRe = regexp.MustCompile(`<([^\s]*)>`)
|
||||
nicknameRe = regexp.MustCompile(`\(([^\s]*)\)`)
|
||||
emailRe = regexp.MustCompile(`<([^\s]*)>`)
|
||||
authorBotsRegexps = []string{
|
||||
`\[bot\]`,
|
||||
`Syncthing.*Automation`,
|
||||
}
|
||||
)
|
||||
|
||||
var authorBotsRe = regexp.MustCompile(strings.Join(authorBotsRegexps, "|"))
|
||||
|
||||
const authorsHeader = `# This is the official list of Syncthing authors for copyright purposes.
|
||||
#
|
||||
# THIS FILE IS MOSTLY AUTO GENERATED. IF YOU'VE MADE A COMMIT TO THE
|
||||
@@ -100,7 +106,7 @@ func main() {
|
||||
|
||||
var lines []string
|
||||
for _, author := range authors {
|
||||
if strings.Contains(author.name, "[bot]") {
|
||||
if authorBotsRe.MatchString(author.name) {
|
||||
// Only humans are eligible, pending future legislation to the
|
||||
// contrary.
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user