forked from orbit-oss/chalk
Update test dependencies (#414)
This commit is contained in:
parent
b31d6fb48a
commit
c0d8e7ed8a
7 changed files with 49 additions and 47 deletions
|
|
@ -22,11 +22,11 @@ function unescape(c) {
|
|||
const bracket = c[1] === '{';
|
||||
|
||||
if ((u && !bracket && c.length === 5) || (c[0] === 'x' && c.length === 3)) {
|
||||
return String.fromCharCode(parseInt(c.slice(1), 16));
|
||||
return String.fromCharCode(Number.parseInt(c.slice(1), 16));
|
||||
}
|
||||
|
||||
if (u && bracket) {
|
||||
return String.fromCodePoint(parseInt(c.slice(2, -1), 16));
|
||||
return String.fromCodePoint(Number.parseInt(c.slice(2, -1), 16));
|
||||
}
|
||||
|
||||
return ESCAPES.get(c) || c;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue