We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7efbb97 + ebea47d commit a3f2212Copy full SHA for a3f2212
std/string.d
@@ -3815,6 +3815,7 @@ unittest
3815
assert(chomp(" hello world \n\n" ~ [lineSep]) == " hello world \n\n");
3816
assert(chomp(" hello world \n\n" ~ [paraSep]) == " hello world \n\n");
3817
assert(chomp(" hello world \n\n" ~ [ nelSep]) == " hello world \n\n");
3818
+ assert(chomp(" hello world ") == " hello world ");
3819
assert(chomp(" hello world") == " hello world");
3820
assert(chomp("") == "");
3821
0 commit comments