Skip to content

Commit cf0234a

Browse files
committed
fix tests error, strings.ReplaceAll is not work on go1.11
1 parent 0b651c3 commit cf0234a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

color_tag.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ func rgbHex256toCode(val string, isBg bool) (code string) {
306306
if len(val) == 6 && rxHexCode.MatchString(val) { // hex: "fc1cac"
307307
code = HEX(val, isBg).String()
308308
} else if strings.ContainsRune(val, ',') { // rgb: "231,178,161"
309-
code = strings.ReplaceAll(val, ",", ";")
309+
code = strings.Replace(val, ",", ";", -1)
310310
if isBg {
311311
code = BgRGBPfx + code
312312
} else {

0 commit comments

Comments
 (0)