Skip to content

Commit

Permalink
fix: remove empty entries when splitting
Browse files Browse the repository at this point in the history
  • Loading branch information
Thundernerd committed Feb 23, 2024
1 parent 0187679 commit 0a21c1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mangarr.Stack/Formatting/FormattingService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ RequestedChapterDocument requestedChapterDocument
formatted = formatted.Replace("{chapterNumber}", requestedChapterDocument.ChapterNumber.ToString());

formatted = formatted.ReplaceAll(string.Empty,
_settingsApi.Formatting.Strip?.Split(" ") ?? Array.Empty<string>());
_settingsApi.Formatting.Strip?.Split(" ", StringSplitOptions.RemoveEmptyEntries) ?? Array.Empty<string>());

formatted = formatted.ReplaceAll(_settingsApi.Formatting.InvalidCharacterReplacement,
Path.GetInvalidPathChars().Select(x => x.ToString()));
Expand Down

0 comments on commit 0a21c1d

Please sign in to comment.