Skip to content

Commit e16193f

Browse files
committed
Move PathSeparatorRegex to HUDMerger.Core
1 parent e190fe7 commit e16193f

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

src/HUDMerger.Core/App.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
using System;
2+
using System.Text.RegularExpressions;
3+
4+
namespace HUDMerger.Core;
5+
6+
public partial class App
7+
{
8+
[GeneratedRegex(@"[/\\]+", RegexOptions.Compiled)]
9+
public static partial Regex PathSeparatorRegex();
10+
}

src/HUDMerger/App.xaml.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ namespace HUDMerger;
1717
/// </summary>
1818
public partial class App : Application
1919
{
20-
[GeneratedRegex(@"[/\\]+")]
21-
public static partial Regex PathSeparatorRegex();
22-
2320
public Lazy<Settings> Settings = new(() =>
2421
{
2522
string? teamFortress2Folder = null;

0 commit comments

Comments
 (0)