mirror of
https://github.com/flynx/colors.js.git
synced 2025-10-29 11:00:11 +00:00
Fix some Zalgo typos
This commit is contained in:
parent
9e0ecb6bdc
commit
cbbb12442b
@ -58,10 +58,10 @@ module['exports'] = function zalgo(text, options) {
|
|||||||
function heComes(text, options) {
|
function heComes(text, options) {
|
||||||
var result = '', counts, l;
|
var result = '', counts, l;
|
||||||
options = options || {};
|
options = options || {};
|
||||||
options["up"] = options["up"] || true;
|
options["up"] = typeof options["up"] !== 'undefined' ? options["up"] : true;
|
||||||
options["mid"] = options["mid"] || true;
|
options["mid"] = typeof options["mid"] !== 'undefined' ? options["mid"] : true;
|
||||||
options["down"] = options["down"] || true;
|
options["down"] = typeof options["down"] !== 'undefined' ? options["down"] : true;
|
||||||
options["size"] = options["size"] || "maxi";
|
options["size"] = typeof options["size"] !== 'undefined' ? options["size"] : "maxi";
|
||||||
text = text.split('');
|
text = text.split('');
|
||||||
for (l in text) {
|
for (l in text) {
|
||||||
if (is_char(l)) {
|
if (is_char(l)) {
|
||||||
@ -72,12 +72,12 @@ module['exports'] = function zalgo(text, options) {
|
|||||||
switch (options.size) {
|
switch (options.size) {
|
||||||
case 'mini':
|
case 'mini':
|
||||||
counts.up = randomNumber(8);
|
counts.up = randomNumber(8);
|
||||||
counts.min = randomNumber(2);
|
counts.mid = randomNumber(2);
|
||||||
counts.down = randomNumber(8);
|
counts.down = randomNumber(8);
|
||||||
break;
|
break;
|
||||||
case 'maxi':
|
case 'maxi':
|
||||||
counts.up = randomNumber(16) + 3;
|
counts.up = randomNumber(16) + 3;
|
||||||
counts.min = randomNumber(4) + 1;
|
counts.mid = randomNumber(4) + 1;
|
||||||
counts.down = randomNumber(64) + 3;
|
counts.down = randomNumber(64) + 3;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user