Skip to content

Commit

Permalink
fix tests error, strings.ReplaceAll is not work on go1.11
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Apr 10, 2021
1 parent 0b651c3 commit cf0234a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion color_tag.go
Expand Up @@ -306,7 +306,7 @@ func rgbHex256toCode(val string, isBg bool) (code string) {
if len(val) == 6 && rxHexCode.MatchString(val) { // hex: "fc1cac"
code = HEX(val, isBg).String()
} else if strings.ContainsRune(val, ',') { // rgb: "231,178,161"
code = strings.ReplaceAll(val, ",", ";")
code = strings.Replace(val, ",", ";", -1)
if isBg {
code = BgRGBPfx + code
} else {
Expand Down

0 comments on commit cf0234a

Please sign in to comment.