Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Commit

Permalink
fix quiet crash on file names with spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepeybunney committed May 4, 2020
1 parent d7b3a53 commit b445708
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Onomatopaira/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ private static void Main(string[] Args)

line = line.TrimStart(' ');
line = Regex.Replace(line, @" +", " ", RegexOptions.Compiled);
var Data = new FileInformation(line.Split(' '));
var Data = new FileInformation(line.Split(new char[] { ' ' }, 3));

Utilities.Log(
$"Extracting File: {new FileInfo(Data.FileName).Name} ({Data.FileSize} Bytes)",
Expand Down

0 comments on commit b445708

Please sign in to comment.