Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dash in range not correctly parsed #24

Closed
pjljvandelaar opened this issue Sep 18, 2019 · 3 comments
Closed

dash in range not correctly parsed #24

pjljvandelaar opened this issue Sep 18, 2019 · 3 comments
Labels

Comments

@pjljvandelaar
Copy link

pjljvandelaar commented Sep 18, 2019

As specified in
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap09.html

the expression "[--@]" matches any of the characters between '-' and '@' inclusive

However, ("@" =~ "[--@]") results in

Explict error in module Text.Regex.TDFA.String : 
Text.Regex.TDFA.String died: parseRegex for Text.Regex.TDFA.String failed:"[--@]" (line 1, column 4):
       unexpected A dash is in the wrong place in a bracket
       expecting "]"
       CallStack (from HasCallStack):
         error, called at .\Text\Regex\TDFA\Common.hs:29:3 in regex-tdfa-1.2.3.1-DVMXTrvIFHgDCky8s203W0:Text.Regex.TDFA.Common)
@pjljvandelaar
Copy link
Author

Note the typo in

error ("Explict error in module "++moduleName++" : "++message)

Explicit

@neongreen
Copy link
Collaborator

Agreed, this is a bug. I'm merely keeping this package on life support but I will certainly accept a PR that fixes this bug.

@neongreen
Copy link
Collaborator

Moving over to haskell-hvr/regex-tdfa#1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants