Skip to content

fix: use the enter character \u21a9#746

Merged
wewoor merged 1 commit into
DTStack:mainfrom
Zaoei:fix/keyCodeEnterSplit
May 20, 2022
Merged

fix: use the enter character \u21a9#746
wewoor merged 1 commit into
DTStack:mainfrom
Zaoei:fix/keyCodeEnterSplit

Conversation

@Zaoei

@Zaoei Zaoei commented May 19, 2022

Copy link
Copy Markdown
Collaborator

Description

an extra empty string was split due to \ufe0e

Fixes #721

Changes

// old
'↩︎'.split('') // ['↩', '︎'] \u21a9\ufe0e
// new
'↩'.split('') // ['↩'] \u21a9

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules

@Zaoei
Zaoei requested review from mortalYoung, mumiao and wewoor May 19, 2022 15:11
@codecov

codecov Bot commented May 19, 2022

Copy link
Copy Markdown

Codecov Report

Merging #746 (f4478d3) into main (05ad264) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #746   +/-   ##
=======================================
  Coverage   91.34%   91.34%           
=======================================
  Files         189      189           
  Lines        5947     5947           
  Branches     1426     1425    -1     
=======================================
  Hits         5432     5432           
  Misses        508      508           
  Partials        7        7           
Impacted Files Coverage Δ
src/model/keybinding.ts 100.00% <ø> (ø)
src/components/tabs/tab.tsx 100.00% <0.00%> (ø)
src/components/tabs/tabExtra.tsx 100.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 05ad264...f4478d3. Read the comment docs.

@mortalYoung mortalYoung left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@mortalYoung mortalYoung added the bug Something isn't working label May 20, 2022

@wewoor wewoor left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@wewoor
wewoor merged commit 7fd02ab into DTStack:main May 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: there is an unseen string

3 participants