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
I think you are correct. Would you care to prepare a PR?
Just in case someone is relying on the old behavior, let's introduce the corrected version under a new name (say, replace2) and add a DEPRECATED pragma on the old one. And please add the tests for both greedy and non-greedy regexes. (Perhaps even add doctests?)
Whereas I would expect
1 x 2 x 3
as a result.Replacing
findLongestInfix
byfindFirstInfix
inreplace
definition seems to fix this case but I am not sure if this is a proper solution.Using regex-applicative-0.3.4
The text was updated successfully, but these errors were encountered: