Skip to content

Commit d9a49d1

Browse files
committed
Update emoji check logic, 4.1.1
1 parent 363b2a1 commit d9a49d1

4 files changed

Lines changed: 198 additions & 223 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
44
The format is (loosely) based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [4.1.1](https://github.com/doesdev/mvt/compare/4.1.0...4.1.1)
8+
#### 2020-07-16
9+
10+
### Changed
11+
- Change emoji support check logic
12+
- Update ava
13+
714
## [4.1.0](https://github.com/doesdev/mvt/compare/4.0.0...4.1.0)
815
#### 2020-03-10
916

lib/cli-char-supported.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ const appleTerm = process.env.TERM_PROGRAM === 'Apple_Terminal'
66
const xterm = process.env.TERM === 'xterm-256color'
77
const charOffset = appleTerm || xterm ? -1 : 0
88

9-
const checkChar = (char) => new Promise((resolve, reject) => {
9+
const checkChar = (char, expected) => new Promise((resolve, reject) => {
1010
if (!process.stdin.isTTY) return resolve(false)
1111
let clean = false
1212

13-
const expect = char.length + 1
13+
const expect = (expected || char.length) + 1
1414
const rawMode = process.stdin.isRaw
1515
const cleanup = (supported, force) => {
1616
if (clean) return

0 commit comments

Comments
 (0)