Skip to content

Quote complex keys in objects #45

@pcorpet

Description

@pcorpet

Currently inspection of an object with a complex key (e.g. with a dot) returns something that is not syntactically valid.

See chaijs/chai#1401 (comment)

loupe.inspect({'a.b': 1})

returns { a.b: 1 } but we would prefer { 'a.b': 1}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions