Skip to content

Commit

Permalink
Fix chainlink ignoreFile flag being ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
julienv3 committed Nov 28, 2024
1 parent 8370016 commit 3dd0696
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/chainlink/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ func init() {
flag.BoolVar(&checkAll, "checkAll", false, "Check all detected URLs, or those belonging to -hostname")
flag.BoolVar(&extractMode, "extractOnly", false, "Only extract URLs, don't check them")

flag.Parse()

// won't match anything like `../` or `./` or non-leading `/` URLs
// unmatched urls will go into the unchecked result accumulator
correctURLregex = regexp.MustCompile(`^(http|https|\/).+`)
Expand All @@ -43,8 +45,6 @@ func init() {
}

func main() {
flag.Parse()

err := processContentDir()
if err != nil {
log.Fatalf("error processing contentDir: %v", err)
Expand Down

0 comments on commit 3dd0696

Please sign in to comment.