Skip to content

Parsing strings with special character failures #20

@erickakoyama

Description

@erickakoyama

Hi, thanks for the parsing functions ⚡️ . I am parsing a filter odata string like this and receiving parser errors for special characters in certain strings. For example:

  1. Fails when a hash mark is in the string
    activities/last7Days eq 'Page#pageViewed#343521056969328528'

  2. Fails when a '%' is in any side but '/' is ok
    activities/Page/pageViewed%012345 lt '2018-07-08T:09:30:00.000Z'

  3. Fails when a '/' is in any side but '%' is ok
    count(foo='activities/Page%23pageViewed%23012345 lt 2018-07-08T:09:30:00.000Z',bar='gt',baz=100)'

Here is a codesandbox with the test: https://codesandbox.io/embed/618478m2vn

Is there a recommendation for what we can do to handle these cases? Thank you very much 🙏

Version: 0.1.29

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