Fix system resourses check

This commit is contained in:
Tech Garage 2023-03-08 23:31:26 +03:30
parent 2df549cfc0
commit 0471676d10
8 changed files with 124 additions and 36 deletions

View file

@ -3,6 +3,7 @@ using System.Drawing;
using System.Drawing.Imaging;
using System.IO.Compression;
using System.Text;
using System.Text.RegularExpressions;
namespace MTWireGuard
{
@ -84,5 +85,7 @@ namespace MTWireGuard
"" => throw new ArgumentException($"{nameof(input)} cannot be empty", nameof(input)),
_ => string.Concat(input[0].ToString().ToUpper(), input.AsSpan(1))
};
public static string RemoveNonNumerics(this string input) => Regex.Replace(input, "[^0-9.]", "");
}
}