Fix build and code structure improvements. New but essential UI functionality. CI improvements. Documentation improvements. AI module improvements.
This commit is contained in:
@@ -37,7 +37,8 @@ public sealed partial class AlpineSecfixesParser : ISecfixesParser
|
||||
if (string.IsNullOrWhiteSpace(apkbuild))
|
||||
yield break;
|
||||
|
||||
var lines = apkbuild.Split('\n');
|
||||
// Normalize line endings to handle both Unix and Windows formats
|
||||
var lines = apkbuild.ReplaceLineEndings("\n").Split('\n');
|
||||
var inSecfixes = false;
|
||||
string? currentVersion = null;
|
||||
|
||||
|
||||
@@ -30,7 +30,8 @@ public sealed partial class DebianChangelogParser : IChangelogParser
|
||||
if (string.IsNullOrWhiteSpace(changelog))
|
||||
yield break;
|
||||
|
||||
var lines = changelog.Split('\n');
|
||||
// Normalize line endings to handle both Unix and Windows formats
|
||||
var lines = changelog.ReplaceLineEndings("\n").Split('\n');
|
||||
if (lines.Length == 0)
|
||||
yield break;
|
||||
|
||||
|
||||
@@ -25,7 +25,8 @@ public sealed partial class PatchHeaderParser : IPatchParser
|
||||
foreach (var (path, content, sha256) in patches)
|
||||
{
|
||||
// Read first 80 lines as header (typical patch header size)
|
||||
var headerLines = content.Split('\n').Take(80);
|
||||
// Normalize line endings to handle both Unix and Windows formats
|
||||
var headerLines = content.ReplaceLineEndings("\n").Split('\n').Take(80);
|
||||
var header = string.Join('\n', headerLines);
|
||||
|
||||
// Also check filename for CVE (e.g., "CVE-2024-1234.patch")
|
||||
|
||||
@@ -39,7 +39,8 @@ public sealed partial class RpmChangelogParser : IChangelogParser
|
||||
if (string.IsNullOrWhiteSpace(specContent))
|
||||
yield break;
|
||||
|
||||
var lines = specContent.Split('\n');
|
||||
// Normalize line endings to handle both Unix and Windows formats
|
||||
var lines = specContent.ReplaceLineEndings("\n").Split('\n');
|
||||
var inChangelog = false;
|
||||
var inFirstEntry = false;
|
||||
string? currentVersion = null;
|
||||
@@ -128,7 +129,8 @@ public sealed partial class RpmChangelogParser : IChangelogParser
|
||||
if (string.IsNullOrWhiteSpace(specContent))
|
||||
yield break;
|
||||
|
||||
var lines = specContent.Split('\n');
|
||||
// Normalize line endings to handle both Unix and Windows formats
|
||||
var lines = specContent.ReplaceLineEndings("\n").Split('\n');
|
||||
var inChangelog = false;
|
||||
string? currentVersion = null;
|
||||
var currentEntry = new List<string>();
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="10.0.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
Reference in New Issue
Block a user