Skip to content

Commit

Permalink
perf(idntranslator.go): extend transitional processing TLDs array wit…
Browse files Browse the repository at this point in the history
…h '.art' TLD
  • Loading branch information
AsifNawaz-cnic committed Jul 25, 2024
1 parent 8911d04 commit 27ad3d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion idntranslator/idntranslator.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func isTransitionalProcessing(keyword string, transitionalProcessing ...bool) bo
return transitionalProcessing[0]
}

transitionalTLDs := []string{"be", "ca", "de", "fr", "pm", "re", "swiss", "tf", "wf", "yt"}
transitionalTLDs := []string{"art", "be", "ca", "de", "fr", "pm", "re", "swiss", "tf", "wf", "yt"}
regex := `\.(` + strings.Join(transitionalTLDs, "|") + `)\.?`
re := regexp.MustCompile(regex)
return re.MatchString(strings.ToLower(keyword))
Expand Down

0 comments on commit 27ad3d2

Please sign in to comment.