remove some log output
This commit is contained in:
@ -3,8 +3,7 @@
|
|||||||
- changes:
|
- changes:
|
||||||
- Jenkinsfile
|
- Jenkinsfile
|
||||||
- .gitlab-ci.yml
|
- .gitlab-ci.yml
|
||||||
- README.md
|
- readme.md
|
||||||
- docs/*
|
|
||||||
when: never
|
when: never
|
||||||
- when: on_success
|
- when: on_success
|
||||||
|
|
||||||
@ -43,7 +42,6 @@ stages:
|
|||||||
|
|
||||||
"Create Release":
|
"Create Release":
|
||||||
stage: build
|
stage: build
|
||||||
|
|
||||||
image:
|
image:
|
||||||
name: registry.gitlab.com/gitlab-org/release-cli:latest
|
name: registry.gitlab.com/gitlab-org/release-cli:latest
|
||||||
<<: *rules-changes
|
<<: *rules-changes
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"regexp"
|
"regexp"
|
||||||
"sort"
|
"sort"
|
||||||
|
|
||||||
@ -29,15 +28,12 @@ func cleanBadDomains(domains []string) []string {
|
|||||||
// remove duplicates
|
// remove duplicates
|
||||||
domains = removeDuplicateStr(domains)
|
domains = removeDuplicateStr(domains)
|
||||||
|
|
||||||
fmt.Printf("Processing: \n")
|
|
||||||
|
|
||||||
for _, domain := range domains {
|
for _, domain := range domains {
|
||||||
// removing trailing dots
|
// removing trailing dots
|
||||||
domain = regexp.MustCompile(`\.$`).ReplaceAllString(domain, "")
|
domain = regexp.MustCompile(`\.$`).ReplaceAllString(domain, "")
|
||||||
|
|
||||||
// skip domains that are too long
|
// skip domains that are too long
|
||||||
if len([]rune(domain)) > 230 {
|
if len([]rune(domain)) > 230 {
|
||||||
fmt.Printf("-")
|
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -50,7 +46,6 @@ func cleanBadDomains(domains []string) []string {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if skip {
|
if skip {
|
||||||
fmt.Printf(".")
|
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user