Skip to content

Commit

Permalink
Use lower-case hex digits in filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
cschneegans committed Mar 23, 2024
1 parent c0d7548 commit 5bca5b9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions modifier/Script.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;

namespace Schneegans.Unattend;

Expand Down Expand Up @@ -51,7 +49,7 @@ record class ScriptId(string FullName, string Key);

private ScriptId NewScriptId(Script script)
{
string name = $"unattend-{++count:X2}";
string name = $"unattend-{++count:x2}";
string extension = script.Type.ToString().ToLowerInvariant();
return new ScriptId(@$"{ScriptsDirectory}\{name}.{extension}", name);
}
Expand Down

0 comments on commit 5bca5b9

Please sign in to comment.