You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
convertMatchText @ Text.RE.ZeInternals.Types.Match does perfectly correct captures' offsets and lengths, but capturedText is left intact (at this very line you can see, it's put straight from input), which may provoke more issues with using the library, mostly Text.RE.PCRE.Text.
The workaround is take (captureLength c) $ drop (captureOffset c) $ (captureSource c), but it's kind of lame. Incorporating similar code into RegexFix would make it more transparent but may impact on performance.
The text was updated successfully, but these errors were encountered:
@chekoopa thanks for the clear analysis. I am far too busy to be able to work on this at the moment but will be amenable to carving out some time. The more demand there is the sooner I am likely to get to this so please shout if anybody needs this fixed.
convertMatchText @ Text.RE.ZeInternals.Types.Match
does perfectly correct captures' offsets and lengths, butcapturedText
is left intact (at this very line you can see, it's put straight from input), which may provoke more issues with using the library, mostlyText.RE.PCRE.Text
.The workaround is
take (captureLength c) $ drop (captureOffset c) $ (captureSource c)
, but it's kind of lame. Incorporating similar code intoRegexFix
would make it more transparent but may impact on performance.The text was updated successfully, but these errors were encountered: