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.
1 parent 4e768bc commit 47db7d3Copy full SHA for 47db7d3
exercises/practice/diamond/DiamondTests.cs
@@ -7,7 +7,7 @@
7
public class DiamondTests
8
{
9
public static readonly char[] AllLetters = GetLetterRange('A', 'Z');
10
- private static string[] Rows(string x) => x.Split(Environment.NewLine);
+ private static string[] Rows(string x) => x.Split('\n').Select(line => line.TrimEnd('\r')).ToArray();
11
12
private static string LeadingSpaces(string x) => x.Substring(0, x.IndexOfAny(AllLetters));
13
private static string TrailingSpaces(string x) => x.Substring(x.LastIndexOfAny(AllLetters) + 1);
0 commit comments