Skip to content

Commit

Permalink
ScrapeHeaders: Trim filenames when splitting for ;
Browse files Browse the repository at this point in the history
Fixes #1838
  • Loading branch information
MarijnS95 committed Sep 3, 2024
1 parent 5c94c97 commit 8824344
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/GeneratorSdk/MetadataTasks/ScrapeHeaders.cs
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ private string[] GetRemaps(ITaskItem item)

private string[] GetFilesFromMetadata(ITaskItem item, string name)
{
string[] items = item.GetMetadata(name).Split(';', System.StringSplitOptions.RemoveEmptyEntries);
string[] items = item.GetMetadata(name).Split(';', System.StringSplitOptions.RemoveEmptyEntries | System.StringSplitOptions.TrimEntries);
for (int i = 0; i < items.Length; i++)
{
if (!Path.IsPathRooted(items[i]))
Expand Down

0 comments on commit 8824344

Please sign in to comment.