Skip to content

Commit

Permalink
Fix ISP string
Browse files Browse the repository at this point in the history
  • Loading branch information
maddie committed Dec 21, 2020
1 parent 890bc10 commit f033591
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions results/telemetry.go
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,8 @@ func DrawPNG(w http.ResponseWriter, r *http.Request) {
var ispString string
if strings.Contains(result.ProcessedString, "-") {
str := strings.SplitN(result.ProcessedString, "-", 2)
if strings.Contains(str[0], "(") {
str = strings.SplitN(str[0], "(", 2)
if strings.Contains(str[1], "(") {
str = strings.SplitN(str[1], "(", 2)
}
ispString = str[0]
}
Expand Down

0 comments on commit f033591

Please sign in to comment.