Skip to content

Hash using bracket notation are evaluated as NaN #37

@ValentinTrinque

Description

@ValentinTrinque

When you build an URL with the bracket notation (like on Rake), Arg.js evaluates the key as NaN.

Example:

?q[status]=open should be interpreted as { q: { status: "open" } }

The culprit is here !

A possible fix could be parsing the nextSelector:

  • if we only identify numbers then we call parseInt()
  • else we build a hash

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