Description
ChrisKuklewicz/regex-tdfa#24, originally reported by @pjljvandelaar
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)