Skip to content

Commit

Permalink
- fixed MSConvertGUI to use the same invalid filename chars as msconv…
Browse files Browse the repository at this point in the history
…ert (which was recently updated to replace all unprintable/control chars with underscore)
  • Loading branch information
chambm committed Nov 30, 2023
1 parent a240026 commit 0d5c56a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pwiz_tools/MSConvertGUI/MainLogic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public string outputFilename(string inputFilename, MSData inputMsData)
// this list is for Windows; it's a superset of the POSIX list
const string illegalFilename = "\\/*:?<>|\"";
foreach (var t in illegalFilename)
if (runId.Contains(t))
if (t < 0x20 || t == 0x7F || runId.Contains(t))
runId = runId.Replace(t, '_');

var newFilename = runId + Extension;
Expand Down

0 comments on commit 0d5c56a

Please sign in to comment.