Skip to content

nufmt places the optional operator in the wrong place #85

@hydeik

Description

@hydeik

Describe the bug

Input:

$env.FOO? | default 'foo'

Expected output:

$env.FOO? | default 'foo'

Actual output:

$env.?FOO | default 'foo'

(? operator is placed just after . which breaks the code)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions