Skip to content

parse_options should not convert parsed arguments to strings #547

@jcubic

Description

@jcubic

Expected behavior

I should get regex if call call parse_options with regex.

Actual behavior

everything is converted to strings if they are not strings.

Steps to reproduce

$.terminal.parse_options([/xxx/, '-b', 10])
// {_: ["/xxx/"], b: "10"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugresolvedif issue is resolved, it will be open until merge with master

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions