October 03, 2016 [Issue 16587] New: split("", "x") should be "" | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=16587 Issue ID: 16587 Summary: split("", "x") should be "" Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: regression Priority: P1 Component: phobos Assignee: nobody@puremagic.com Reporter: thecybershadow@gmail.com /////////////// test.d /////////////// import std.string; void main() { assert("".split(",").length == 0); } ////////////////////////////////////// Introduced in https://github.com/dlang/phobos/pull/4030. Additionally, the new behavior is inconsistent: split("") => [] split("", ",") => [""] splitLines("") => [] -- | ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply