Open
Description
Better docs for (fixed in 1.3.2), fix Pattern
moduleshowPattern
to round-trip.
It is claimed that showPattern
round-trips, but does not:
>>> getAllTextMatches ("a \" \\" =~ "[a]") :: [String]
["a"]
>>> let parse = either (error . show) fst . parseRegex
>>> let pp' = showPattern . parse
>>> getAllTextMatches ("a \" \\" =~ pp' "[a]") :: [String]
["a","\""]
It uses Show PatternSet
which adds "
coming from empty components of PatternSet
:
regex-tdfa/lib/Text/Regex/TDFA/Pattern.hs
Lines 102 to 109 in c5b8f54
Metadata
Metadata
Assignees
Labels
No labels