Skip to content

Commit 4bb681b

Browse files
author
n.bitounis
committed
Split based on LF instead of CR/LF.
1 parent 3a79610 commit 4bb681b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DataStructures/Common/PrimesList.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ private static string[] _readResource(string resourceName)
218218
{
219219
using (var stream = typeof(PrimesList).GetTypeInfo().Assembly.GetManifestResourceStream(resourceName))
220220
using (var reader = new StreamReader(stream ?? throw new InvalidOperationException("Failed to read resource"), Encoding.UTF8))
221-
return reader.ReadToEnd().Split("\r\n");
221+
return reader.ReadToEnd().Split("\r");
222222
}
223223
catch (Exception ex)
224224
{

0 commit comments

Comments
 (0)