Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix square character to fill the whole area #66

Merged
merged 1 commit into from
Mar 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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