mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-13 15:28:40 +00:00
Added an analyzer which keeps line breaks LF on every system (#1193)
This commit is contained in:
1 parent
b1c1f13993
commit
65d50de033
96 files changed
+741
-393
No files matched your search
@@ -296,7 +296,7 @@ public sealed class SourceExtensionsTests
|
||||
/// <param name="markdown">The Markdown of the sources.</param>
|
||||
/// <returns>The entries, in the order they stand in.</returns>
|
||||
private static IReadOnlyList<string> EntriesOf(string markdown) => markdown
|
||||
.Split(Environment.NewLine, StringSplitOptions.TrimEntries | StringSplitOptions.RemoveEmptyEntries)
|
||||
.Split('\n', StringSplitOptions.TrimEntries | StringSplitOptions.RemoveEmptyEntries)
|
||||
.Where(line => line.StartsWith("- [", StringComparison.Ordinal))
|
||||
.ToList();
|
||||
}
|
||||
Reference in new issue
Block a user