Skip to content

Commit a4c136e

Browse files
author
n.bitounis
committed
Splitting based on \n.
1 parent c6adca9 commit a4c136e

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
@@ -225,7 +225,7 @@ private static string[] _readResource(string resourceName)
225225
{
226226
using (var stream = typeof(PrimesList).GetTypeInfo().Assembly.GetManifestResourceStream(resourceName))
227227
using (var reader = new StreamReader(stream ?? throw new InvalidOperationException("Failed to read resource"), Encoding.UTF8))
228-
return reader.ReadToEnd().Split("\r\n");
228+
return reader.ReadToEnd().Split("\n");
229229
}
230230
catch (Exception ex)
231231
{

0 commit comments

Comments
 (0)