August 11, 2013 [Issue 10796] New: std.regex: ctRegex bug with '.' and $ in multi-line mode | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=10796 Summary: std.regex: ctRegex bug with '.' and $ in multi-line mode Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody@puremagic.com ReportedBy: dmitry.olsh@gmail.com --- Comment #0 from Dmitry Olshansky <dmitry.olsh@gmail.com> 2013-08-11 12:48:23 PDT --- The tricky test case directly from run-time regex test suite: import std.regex; void main() { auto cr9 = ctRegex!(".*$", "gm"); auto m9 = match("First\rSecond", cr9); assert(m9); assert(equal(map!"a.hit"(m9), ["First", "", "Second"])); } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
August 11, 2013 [Issue 10796] std.regex: ctRegex bug with '.' and $ in multi-line mode | ||||
---|---|---|---|---|
| ||||
Posted in reply to Dmitry Olshansky | http://d.puremagic.com/issues/show_bug.cgi?id=10796 Dmitry Olshansky <dmitry.olsh@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Dmitry Olshansky <dmitry.olsh@gmail.com> 2013-08-11 12:49:57 PDT --- (In reply to comment #0) > The tricky test case directly from run-time regex test suite: > > import std.regex; import std.algorithm; > > void main() > { > auto cr9 = ctRegex!(".*$", "gm"); > auto m9 = match("First\rSecond", cr9); > assert(m9); > assert(equal(map!"a.hit"(m9), ["First", "", "Second"])); > } Fixed: https://github.com/D-Programming-Language/phobos/pull/1464 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation