Skip to content

Commit e4dff45

Browse files
committed
util: typo
1 parent edde617 commit e4dff45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/util.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ function hexToNibble(code) {
126126
return -1;
127127
}
128128

129-
const hastagCharcode = 35
129+
const hashtagCode = 35
130130

131131
/**
132132
* Parses a hex color in #RGB or #RRGGBB form.
@@ -194,7 +194,7 @@ function styleText(format, text, { validateStream = true, stream = process.stdou
194194
for (const key of formatArray) {
195195
if (key === 'none') continue;
196196

197-
if (typeof key === 'string' && key.charCodeAt(0) === hastagCharcode) {
197+
if (typeof key === 'string' && key.charCodeAt(0) === hashtagCode) {
198198
const rgb = parseHexColor(key);
199199
if (rgb !== undefined && !skipColorize) {
200200
ArrayPrototypePush(codes, [`38;2;${rgb[0]};${rgb[1]};${rgb[2]}`, 39]);

0 commit comments

Comments
 (0)