Fix ISP string
This commit is contained in:
parent
890bc10096
commit
f033591c81
@ -347,8 +347,8 @@ func DrawPNG(w http.ResponseWriter, r *http.Request) {
|
|||||||
var ispString string
|
var ispString string
|
||||||
if strings.Contains(result.ProcessedString, "-") {
|
if strings.Contains(result.ProcessedString, "-") {
|
||||||
str := strings.SplitN(result.ProcessedString, "-", 2)
|
str := strings.SplitN(result.ProcessedString, "-", 2)
|
||||||
if strings.Contains(str[0], "(") {
|
if strings.Contains(str[1], "(") {
|
||||||
str = strings.SplitN(str[0], "(", 2)
|
str = strings.SplitN(str[1], "(", 2)
|
||||||
}
|
}
|
||||||
ispString = str[0]
|
ispString = str[0]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user