8000 Parsing a `number` in scientific notation _without_ a decimal exponent fails. · Issue #203 · purescript-contrib/purescript-parsing · GitHub
[go: up one dir, main page]

Skip to content
Parsing a number in scientific notation _without_ a decimal exponent fails. #203
Closed
@MaybeJustJames

Description

@MaybeJustJames

Using the Parsing.String.Basic.number parser on a number in scientific notation but without a decimal exponent only parses the non-exponent part.

To Reproduce

num <- runParser "1.2e1" number
num /= 12

Expected behavior
Parser should parse numbers in scientific notation without a decimal exponent.

Additional context
The regex is failing. This can be observed here.
Screenshot_2022-07-18_12-18-08

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething that should function correctly isn't.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0