This commit is contained in:
suyl
2021-07-02 14:21:19 +08:00
parent a2ff32ce31
commit 92c12c9a37

View File

@@ -349,10 +349,10 @@ func replaceContent(content string) (result string) {
result = strings.ReplaceAll(result, k, v) result = strings.ReplaceAll(result, k, v)
} }
} }
if strings.Contains(result, byteSignCenter) && strings.Contains(result, byteSignCenterE) { //if strings.Contains(result, byteSignCenter) && strings.Contains(result, byteSignCenterE) {
result = strings.ReplaceAll(result, byteSignCenter, hexSignCenter) result = strings.ReplaceAll(result, byteSignCenter, hexSignCenter)
result = strings.ReplaceAll(result, byteSignCenterE, hexSignLeft) result = strings.ReplaceAll(result, byteSignCenterE, hexSignLeft)
} //}
if strings.Contains(result, byteSignLeft) && strings.Contains(result, byteSignLeftE) { if strings.Contains(result, byteSignLeft) && strings.Contains(result, byteSignLeftE) {
result = strings.ReplaceAll(result, byteSignLeft, hexSignLeft) result = strings.ReplaceAll(result, byteSignLeft, hexSignLeft)
result = strings.ReplaceAll(result, byteSignLeftE, hexSignLeft) result = strings.ReplaceAll(result, byteSignLeftE, hexSignLeft)
@@ -361,10 +361,10 @@ func replaceContent(content string) (result string) {
result = strings.ReplaceAll(result, byteSignRight, hexSignRight) result = strings.ReplaceAll(result, byteSignRight, hexSignRight)
result = strings.ReplaceAll(result, byteSignRightE, hexSignLeft) result = strings.ReplaceAll(result, byteSignRightE, hexSignLeft)
} }
if strings.Contains(result, byteSignBig) && strings.Contains(result, byteSignBigE) { //if strings.Contains(result, byteSignBig) && strings.Contains(result, byteSignBigE) {
result = strings.ReplaceAll(result, byteSignBig, hexSignBig) result = strings.ReplaceAll(result, byteSignBig, hexSignBig)
result = strings.ReplaceAll(result, byteSignBigE, hexSignNormal) result = strings.ReplaceAll(result, byteSignBigE, hexSignNormal)
} //}
if strings.Contains(result, byteSignHighBig) && strings.Contains(result, byteSignHighBigE) { if strings.Contains(result, byteSignHighBig) && strings.Contains(result, byteSignHighBigE) {
result = strings.ReplaceAll(result, byteSignHighBig, hexSignHighBig) result = strings.ReplaceAll(result, byteSignHighBig, hexSignHighBig)
result = strings.ReplaceAll(result, byteSignHighBigE, hexSignNormal) result = strings.ReplaceAll(result, byteSignHighBigE, hexSignNormal)