8000 `regex` should wrap regex in parens when prefixing with ^ · Issue #69 · purescript-contrib/purescript-string-parsers · GitHub
[go: up one dir, main page]

Skip to content
regex should wrap regex in parens when prefixing with ^ #69
Closed
@natefaubion

Description

@natefaubion

Describe the bug
regex will prefix with ^, but does not account for regex precedence with |.

To Reproduce
regex "a|b"

Expected behavior
It should behave as ^(a|b), but the precedence of ^a|b is equivalent to (^a)|b.

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