http://d.puremagic.com/issues/show_bug.cgi?id=6076

           Summary: std.regex: "c.*|d" matches "mm"
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Mac OS X
            Status: NEW
          Keywords: wrong-code
          Severity: regression
          Priority: P2
         Component: Phobos
        AssignedTo: nob...@puremagic.com
        ReportedBy: kenn...@gmail.com


--- Comment #0 from kenn...@gmail.com 2011-05-29 10:43:18 PDT ---
Test case:
------------------------------
import std.regex;
void main() {
    auto re = regex("c.*|d");
    auto m = match("mm", re);
    assert(m.empty);          // asserts
}
------------------------------

The regex does not match as expected on 2.042, but it matches an empty string
on 2.053.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to