Skip to content

Commit

Permalink
Add TODO comment
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Mar 17, 2021
1 parent 07aa06a commit fba7e78
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const main = {
sevenEighths: '⅞'
};

const windows = {
const fallback = {
tick: '√',
cross: '×',
star: '*',
Expand Down Expand Up @@ -128,7 +128,8 @@ if (platform === 'linux') {
main.questionMarkPrefix = '?';
}

const figures = platform === 'win32' ? windows : main;
// TODO: Use https://github.com/sindresorhus/is-unicode-supported when targeting Node.js 10.
const figures = platform === 'win32' ? fallback : main;

const fn = string => {
if (figures === main) {
Expand All @@ -148,4 +149,4 @@ const fn = string => {

module.exports = Object.assign(fn, figures);
module.exports.main = main;
module.exports.windows = windows;
module.exports.windows = fallback;

0 comments on commit fba7e78

Please sign in to comment.