forked from orbit-oss/chalk
Meta tweaks
This commit is contained in:
parent
795273f17a
commit
77126fba13
6 changed files with 29 additions and 51 deletions
|
|
@ -10,7 +10,7 @@ function rainbow(string, offset) {
|
|||
return string;
|
||||
}
|
||||
|
||||
const hueStep = 360 / string.replace(ignoreChars, '').length;
|
||||
const hueStep = 360 / string.replaceAll(ignoreChars, '').length;
|
||||
|
||||
let hue = offset % 360;
|
||||
const characters = [];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue