Skip to content

Commit

Permalink
Fix square character to fill the whole area
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Mar 26, 2021
1 parent ad85a33 commit d83b620
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const escapeStringRegexp = require('escape-string-regexp');
const {platform} = process;

const common = {
square: '█',
bullet: '●',
dot: '․',
line: '─',
Expand Down Expand Up @@ -63,7 +64,6 @@ const main = {
tick: '✔',
cross: '✖',
star: '★',
square: '▇',
squareSmall: '◻',
squareSmallFilled: '◼',
play: '▶',
Expand Down Expand Up @@ -104,7 +104,6 @@ const fallback = {
tick: '√',
cross: '×',
star: '✶',
square: '█',
squareSmall: '□',
squareSmallFilled: '■',
play: '►',
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Symbols to use when running on Windows.
| tick | `` | `` |
| cross | `` | `×` |
| star | `` | `` |
| square | `` | `` |
| square | `` | `` |
| squareSmall | `` | `` |
| squareSmallFilled | `` | `` |
| play | `` | `` |
Expand Down
4 changes: 2 additions & 2 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ test('fallbacks', t => {
t.is(figures('foo'), 'foo');
t.is(figures('?bar?'), '?bar?');
t.is(figures('✔ ✔ ✔'), result('✔ ✔ ✔', '√ √ √'));
t.is(figures('✔ ✖\n★ '), result('✔ ✖\n★ ', '√ ×\n✶ '));
t.is(figures('✔ ✖ ★ '), result('✔ ✖ ★ ', '√ × ✶ '));
t.is(figures('✔ ✖\n★ '), result('✔ ✖\n★ ', '√ ×\n✶ '));
t.is(figures('✔ ✖ ★ '), result('✔ ✖ ★ ', '√ × ✶ '));
});

test('exported sets', t => {
Expand Down

0 comments on commit d83b620

Please sign in to comment.