Skip to content

Some characters do false-positively count as 2 while occupying 1 column in terminal #56

@erictheswift

Description

@erictheswift

stringWidth('◼') // 2 in v7, 1 in v5
stringWidth('⚠') // 2 in v7, 1 in v5
stringWidth('✔') // 2 in v7, 1 in v5
(likely not complete list)

seems related to emoji-regex package updates

I guess it is not true that every character considered as emoji due to spec occupies double width. At least at current moment in time.
mathiasbynens/emoji-regex#33

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions