Skip to content

Commit

Permalink
ScrapeHeaders: Trim filenames when splitting for ;
Browse files Browse the repository at this point in the history
  • Loading branch information
MarijnS95 committed Sep 3, 2024
1 parent c287037 commit f4d272f
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 f4d272f

Please sign in to comment.