Skip to content

Breaking change to utils.strlen in 0.3.7 #157

@adrianosmond

Description

@adrianosmond

Previous to 0.3.7 utils.strlen converted anything passed into it into a string while stripping it via
var stripped = ("" + str).replace(code,'');

As of 0.3.7, str is passed directly to stripAnsi:
var stripped = stripAnsi(str);

This means that anything that isn't a string is being passed into it it now breaks in a way that it didn't in 0.3.6. I came across this because @lingui/cli is passing numbers into a table

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions